/* #section-engage-content {
  display: flex;
  flex-direction: column;
} */

#section-engage {
  width: 55vw;
  width: 1160px;

  height: 1000px;
  margin-top: 12vh;
  text-align: center;
}

@media (max-width: 800px) {
  #section-engage { 
    margin-top: 20vh;
  }
}

.div-banner {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.title-wrap {
  margin-bottom: 5vh;
  text-align: center;
}

.p-title {
  font-size: 4rem;
  display: inline-block;
  padding: 0.5%;
  margin-bottom: 30px;
  font-weight: 600; /* semi bold */
}

.title-underline {
  position: relative;
  z-index: -1;
  height: 20px;
  width: 100%;
  display: inline-block;
}

.title-underline::before {
  content: "";
  position: absolute;
  bottom: -0.8em; /* 텍스트 바로 아래 */
  left: 0;
  width: 100%; /* 텍스트 전체를 감쌈 */
  height: 0.4em; /* 밑줄 높이 */
  z-index: -1; /* 텍스트 뒤로 보내기 */
}

.engage-underline::before {
  background-color: #74CDE5;
} 

.contents-underline::before {
  background-color: #E8E8EF;
}

.line {
    width: 100%;
    height: 100%;
    margin-bottom: 4px;
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: #BBBBC4;
}

#section-contents {
  max-width: 1160px;
  min-width: 1000px;
  width: 100%;
  /* width: 50vw; */
  margin: 8vh 0;
  font-size: 1.8rem;
  /* text-align: center; */
}

.contents {
  /* width: 50vw; */
  max-width: 1160px;
  min-width: 1000px;
  width: 100%;
}

.contents ul {
  display: flex;
  flex-wrap: wrap; /* 화면이 좁아질 경우 요소를 줄바꿈 */
  gap: 2vw; /* 요소 간격 */
  justify-content: space-between; /* 여백을 균등하게 배치 */
}

.contents ul li{
  flex: 0 1 calc(33.333% - 1.5vw); /* 기본적으로 가로 3등분 */
  text-align: center;
}

.contents ul li a {
  width: 100%;
  height: 240px;
  box-sizing: border-box;
  text-align: center;
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}

.contents ul li p {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* .contents ul::after {
  content: "";
  flex: 1 1 calc(33.333% - 1.5vw);
} */

.contents ul li:nth-child(1) a {
  background-image: url('/img/engage-content/content/Img_EngageContents_01.png');
}

.contents ul li:nth-child(2) a {
  background-image: url('/img/engage-content/content/Img_EngageContents_02.png');
}

.contents ul li:nth-child(3) a {
  background-image: url('/img/engage-content/content/Img_EngageContents_03.png');
}

.contents ul li:nth-child(4) a {
  background-image: url('/img/engage-content/content/Img_EngageContents_04.png');
}

.contents ul li a:hover .div-show-button {
  background-color: rgba(0, 0, 0, 0.5);
  transition: 0.35s;
  visibility: visible;
}

.div-show-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden; /* 기본 상태: 숨김 */
}

.div-show-button .button {
  /* display: inline-block; */
  padding: 4% 10%;
  min-width: 40%;
  border-radius: 30px;
  background-color: #0F729C;
  color: white;
  position: absolute;
  top: 50%; /* 부모 요소 높이의 50% */
  left: 50%; /* 부모 요소 너비의 50% */
  transform: translate(-50%, -50%); 
}

/* slide 내가 추가한 것 */
.div-slide {
  /* width: 40vw; */
  max-width: 1160px;
  height: 430px;
  margin: 0 auto;
  display: flex;
  position: relative;
}

.slide {
  /* layout */
  display: flex;
  flex-wrap: nowrap;

  /* 컨테이너의 내용물이 컨테이너 크기(width, height)를 넘어설 때 보이지 않도록 하기 위해 hidden을 준다. */
  overflow: hidden;

  /* position */
  /* slide_button의 position absolute가 컨테이너 안쪽에서 top, left, right offset이 적용될 수 있도록 relative를 준다. (기본값이 static인데, static인 경우 그 상위 컨테이너로 나가면서 현재 코드에선 html을 기준으로 offset을 적용시키기 때문) */
  position: relative;

  /* size */
  /* width: 100%; */
  /* max-width: 984px; */
  width: 962px;
  height: 535px;

  /* slide drag를 위해 DOM요소가 드래그로 선택되는것을 방지 */
  user-select: none;

  border-radius: 20px;
}
.slide_item {
  /* layout */
  display: flex;
  align-items: center;
  justify-content: center;

  /* position - 버튼 클릭시 left offset값을 적용시키기 위해 */
  position: relative;
  left: 0px;

  /* size */
  width: 100%;

  /* flex item의 flex-shrink는 기본값이 1이므로 컨테이너 크기에 맞게 줄어드는데, 슬라이드를 구현할 것이므로 줄어들지 않도록 0을 준다. */
  flex-shrink: 0;

  /* transition */
  transition: left 0.15s;
}
.slide_button {
  /* layout */
  display: flex;
  justify-content: center;
  align-items: center;

  /* position */
  position: absolute;
  /* 버튼이 중앙에 위치하게 하기위해 계산 */
  top: calc(50% - 0px);

  /* size */
  width: 40px;
  height: 70px;

  /* style */
  cursor: pointer;

  background-size: cover;

}

.slide_prev_button {
  left: -70px;
  background-image: url('/img/engage-content/Polygon 11.png');
}
.slide_next_button {
  right: -70px;
  background-image: url('/img/engage-content/Polygon 11.png');
  transform: rotate(180deg);
}

.slide_prev_button:hover {
  background-image: url('/img/engage-content/Polygon 10.svg');
  transform: rotate(180deg);
  background-size: 99.7%;
  background-repeat: no-repeat;
  /* size */
  /* width: 30px;
  height: 20px; */
}

.slide_next_button:hover {
  background-image: url('/img/engage-content/Polygon 10.svg');
  transform: rotate(0deg);
  background-size: 99.7%;
  background-repeat: no-repeat;
}

/* 이미지 사이즈 */
.slide_item img{
  width: 100%;
  max-width: 984px;

  height: auto;
}

/* 페이지네이션 스타일 */
ul,
li {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.slide_pagination {
  /* layout */
  display: flex;
  gap: 10px;

  /* position */
  position: absolute;
  bottom: -160px;
  /* left:50%, translateX(-50%)를 하면 가로 가운데로 위치시킬 수 있다. */
  left: 50%;
  transform: translateX(-50%);
}
.slide_pagination > li {
  /* 현재 슬라이드가 아닌 것은 투명도 부여 */
  cursor: pointer;
  font-size: 25px;
  background-image: url('/img/engage-content/Rectangle\ 112.png');
  display: inline-block;
  width: 28px;
  height: 16px;
}
.slide_pagination > li.active {
  /* 현재 슬라이드 색상은 투명도 없이 */
  background-image: url('/img/engage-content/Rectangle\ 108.png');
  width: 100px;
  height: 16px;
}

.slide_item_duplicate {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  left: 0px;
  width: 100%;
  height: 300px;
  flex-shrink: 0;
  transition: left 0.15s;
}