/* 강사진 섹션 */
.instructor-v1-carousel-container {
  width: 100%;
  padding: 0 0 119px 0;
  background: #000;
  overflow: visible;
  padding-bottom: 0px;
}

.instructor-v1-carousel-container .center-card-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card {
  position: absolute;
  width: 638.03px;
  height: 517.25px;
  left: calc(50% - 638.03px / 2 + 0.06px);
  top: 0;
  z-index: 1;
  transition: all 0.5s ease;
}

.instructor-v1-carousel-container
  .center-card-container
  #instructorCard0
  .instructor-center-card-background,
.instructor-v1-carousel-container
  .center-card-container
  #instructorCard2
  .instructor-center-card-background,
.instructor-v1-carousel-container
  .center-card-container
  #instructorCard0
  .instructor-center-card-gradient-overlay,
.instructor-v1-carousel-container
  .center-card-container
  #instructorCard2
  .instructor-center-card-gradient-overlay,
.instructor-v1-carousel-container
  .center-card-container
  #instructorCard0
  .instructor-center-card-bottom-rectangle,
.instructor-v1-carousel-container
  .center-card-container
  #instructorCard2
  .instructor-center-card-bottom-rectangle {
  background: none;
}

.instructor-v1-carousel-container .instructor-center-card-background {
  position: absolute;
  width: 638px;
  height: 450px;
  left: 0px;
  top: 67.25px;
  background: #802fff;
  border-radius: 20px;
}

.instructor-v1-carousel-container .instructor-center-card-image-container {
  position: absolute;
  width: 637.94px;
  height: 375.67px;
  left: 0px;
  top: 0px;
}

.instructor-v1-carousel-container .instructor-center-card-gradient-overlay {
  position: absolute;
  width: 637.94px;
  height: 139.5px;
  left: 0px;
  top: 219.5px;
  background: linear-gradient(180deg, rgba(128, 47, 255, 0) 0%, #802fff 100%);
}

.instructor-v1-carousel-container .instructor-center-card-bottom-rectangle {
  position: absolute;
  width: 637.94px;
  height: 60px;
  left: 0px;
  top: 356px;
  background: #802fff;
}

.instructor-v1-carousel-container
  .instructor-carousel-container
  .carousel-nav-arrows {
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
}

.instructor-v1-carousel-container
  .instructor-carousel-container
  .carousel-nav-arrows:last-child {
  position: absolute;
  left: initial;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
}

.student-new
  .instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(1) {
  width: 247px;
  left: 0px;
}

.student-new
  .instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(3) {
  width: 247px;
  left: initial;
  right: 0px;
  z-index: 2;
}

.instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(1)
  .instructor-center-card-background,
.instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(3)
  .instructor-center-card-background,
.instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(1)
  .instructor-center-card-gradient-overlay,
.instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(3)
  .instructor-center-card-gradient-overlay,
.instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(1)
  .instructor-center-card-image-container,
.instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(3)
  .instructor-center-card-image-container,
.instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(1)
  .instructor-center-card-bottom-rectangle,
.instructor-v1-carousel-container
  .center-card-container
  .instructor-center-card:nth-child(3)
  .instructor-center-card-bottom-rectangle {
  width: 100%;
}

.instructor-v1-carousel-container
  .instructor-center-card-name-and-follower-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 8px;
  position: absolute;
  width: 270px;
  height: 72px;
  left: calc(50% - 270px / 2);
  top: 351px;
  z-index: 10;
}

.instructor-v1-carousel-container
  .instructor-center-card-name-and-follower-info
  h3 {
  width: 270px;
  height: 39px;
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 700;
  font-size: 28px;
  line-height: 140%;
  text-align: center;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.instructor-v1-carousel-container
  .instructor-center-card-name-and-follower-info
  p {
  width: 270px;
  height: 25px;
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 140%;
  text-align: center;
  letter-spacing: -0.03em;
  color: #ffffff;
  opacity: 0.4;
  margin: 0;
}

.instructor-v1-carousel-container .instructor-center-card-social-media-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 16px;
  position: absolute;
  height: 20px;
  left: 50%;
  top: 438px;
  transform: translateX(-50%);
}

.instructor-v1-carousel-container
  .instructor-center-card-social-media-icons-text {
  width: 48px;
  height: 20px;
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.instructor-v1-carousel-container
  .instructor-center-card
  .instagram-btn-container {
  position: absolute;
  width: 270px;
  left: calc(50% - 270px / 2);
  bottom: 51px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  justify-content: center;
  z-index: 10;
}

.instructor-v1-carousel-container .follower-count {
  font-size: 18px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.03em;
  color: #ffffff;
  opacity: 0.4;
}

/* 인스타그램 버튼 스타일 */
.instructor-v1-carousel-container .instagram-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 400px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0px;
}

.instructor-v1-carousel-container .instagram-btn:hover {
  opacity: 0.8;
}

.instructor-v1-carousel-container .instagram-icon {
  width: 20px;
  height: 20px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.instructor-v1-carousel-container .instagram-btn span {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.03em;
  color: #ffffff;
  flex: none;
  order: 1;
  flex-grow: 0;
}

#instructorCard0 .instructor-center-card-gradient-overlay,
#instructorCard2 .instructor-center-card-gradient-overlay {
  background: linear-gradient(
    180deg,
    rgba(128, 47, 255, 0) 0%,
    #000000 60%
  ) !important;
}

/* 반응형 스타일 */

@media (max-width: 1180px) {
  .instructor-v1-carousel-container
    .center-card-container
    .instructor-center-card {
    width: 500px;
    left: calc(50% - 500px / 2 + 0.06px);
  }

  .instructor-v1-carousel-container .instructor-center-card-background,
  .instructor-v1-carousel-container .instructor-center-card-bottom-rectangle,
  .instructor-v1-carousel-container .instructor-center-card-gradient-overlay,
  .instructor-v1-carousel-container .instructor-center-card-image-container {
    width: 500px;
  }
}

@media (max-width: 1150px) {
  .instructor-v1-carousel-container
    .center-card-container
    .instructor-center-card {
    width: 380px;
    left: calc(50% - 380px / 2 + 0.06px);
  }

  .instructor-v1-carousel-container .instructor-center-card-background,
  .instructor-v1-carousel-container .instructor-center-card-bottom-rectangle,
  .instructor-v1-carousel-container .instructor-center-card-gradient-overlay,
  .instructor-v1-carousel-container .instructor-center-card-image-container {
    width: 380px;
  }
}

@media (max-width: 920px) {
  .instructor-v1-carousel-container
    .center-card-container
    .instructor-center-card {
    width: 300px;
    left: calc(50% - 300px / 2 + 0.06px);
  }

  .instructor-v1-carousel-container .instructor-center-card-background,
  .instructor-v1-carousel-container .instructor-center-card-bottom-rectangle,
  .instructor-v1-carousel-container .instructor-center-card-gradient-overlay,
  .instructor-v1-carousel-container .instructor-center-card-image-container {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .student-new
    .instructor-v1-carousel-container
    .center-card-container
    .instructor-center-card:nth-child(1),
  .student-new
    .instructor-v1-carousel-container
    .center-card-container
    .instructor-center-card:nth-child(3) {
    display: none;
  }

  .student-new
    .instructor-v1-carousel-container
    .center-card-container
    .instructor-center-card:nth-child(2) {
    left: 50% !important;
  }

  .instructor-v1-carousel-container .left-gradient-overlay {
    display: none !important;
  }

  .instructor-v1-carousel-container .instructor-center-card-background {
    width: 100%;
    height: 370px;
    aspect-ratio: 1 / 1;
    height: 400px;
  }

  .instructor-v1-carousel-container .instructor-center-card-image-container {
    width: 100%;
  }

  .instructor-v1-carousel-container .instructor-center-card-gradient-overlay,
  .instructor-v1-carousel-container .instructor-center-card-bottom-rectangle {
    width: 100%;
  }

  /* 모바일에서 좌우 회색 박스 숨기기 */
  .instructor-v1-carousel-container .instructor-side-box {
    display: none !important;
  }

  .instructor-v1-carousel-container
    .instructor-carousel-container
    .carousel-nav-arrows {
    display: none !important; /* 모바일에서 화살표 숨기기 */
  }

  .instructor-v1-carousel-container
    .instructor-carousel-container
    .carousel-nav-arrows
    > img {
    width: 24px !important;
    height: 24px !important;
  }

  .instructor-v1-carousel-container
    .instructor-carousel-container
    .carousel-nav-arrows {
    left: -20px;
  }

  .instructor-v1-carousel-container
    .instructor-carousel-container
    .carousel-nav-arrows:last-child {
    right: -40px;
  }

  .instructor-v1-carousel-container .instructor-center-card-background {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: 286px;
    top: 26.25px;
  }

  .instructor-v1-carousel-container .instructor-center-card-bottom-rectangle {
    top: 255px;
  }

  .instructor-v1-carousel-container .instructor-center-card-gradient-overlay {
    top: 170px;
  }

  .instructor-v1-carousel-container
    .instructor-center-card
    .instructor-center-card-image-container
    img {
    position: absolute;
    width: auto;
    height: 266px !important;
    left: 50%;
    transform: translateX(-50%);
    top: -23.45px !important;
    max-width: 100%;
    object-fit: contain;
  }

  .instructor-v1-carousel-container
    .instructor-center-card-name-and-follower-info {
    top: 208px;
  }

  .instructor-v1-carousel-container
    .instructor-center-card-name-and-follower-info
    h3 {
    font-size: 18px;
    height: 25px;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .instructor-v1-carousel-container
    .instructor-center-card-name-and-follower-info
    p {
    font-size: 13px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
  }

  .instructor-v1-carousel-container .instructor-center-card-social-media-icons {
    top: 270px;
  }

  .instructor-v1-carousel-container
    .instructor-center-card-social-media-icons-text {
    font-size: 13px;
  }

  /* 컨테이너 높이 설정 */
  .instructor-v1-carousel-container .instructor-carousel-container {
    height: 335px !important;
    margin-top: 24px !important;
  }

  .instructor-v1-carousel-container .center-card-container {
    position: relative !important;
    height: 335px !important;
  }

  /* 좌우 카드 숨기기 */
  .instructor-v1-carousel-container .instructor-center-card:nth-child(1),
  .instructor-v1-carousel-container .instructor-center-card:nth-child(3) {
    display: none !important;
  }

  /* 중앙 카드만 표시 - 모바일 크기로 조정 */
  .instructor-v1-carousel-container .instructor-center-card {
    width: 276px !important;
    height: 335px !important;
    left: calc(50% - 138px) !important;
  }

  .instructor-v1-carousel-container .instructor-center-card-background {
    width: 276px !important;
    height: 291px !important;
    top: 43.5px !important;
    border-radius: 12px !important;
  }

  .instructor-v1-carousel-container .instructor-center-card-image-container {
    width: 276px !important;
    height: 243px !important;
  }

  .instructor-v1-carousel-container
    .instructor-center-card
    .instructor-center-card-image-container
    img {
    width: auto !important;
    height: 267px !important;
    top: -15px !important;
  }

  .instructor-v1-carousel-container .instructor-center-card-gradient-overlay {
    width: 276px !important;
    height: 90px !important;
    top: 142px !important;
  }

  .instructor-v1-carousel-container .instructor-center-card-bottom-rectangle {
    width: 276px !important;
    height: 14px !important;
    top: 232px !important;
  }

  .instructor-v1-carousel-container
    .instructor-center-card-name-and-follower-info {
    width: 117px !important;
    height: 47px !important;
    left: calc(50% - 58.5px) !important;
    top: 226px !important;
    gap: 4px !important;
  }

  .instructor-v1-carousel-container
    .instructor-center-card-name-and-follower-info
    h3 {
    font-size: 18px !important;
    height: 25px !important;
  }

  .instructor-v1-carousel-container
    .instructor-center-card-name-and-follower-info
    p {
    font-size: 13px !important;
    height: 18px !important;
  }

  .instructor-v1-carousel-container
    .instructor-center-card
    .instagram-btn-container {
    width: 69px !important;
    height: 20px !important;
    left: calc(50% - 34.5px) !important;
    top: 245px !important;
  }

  .instructor-v1-carousel-container .instagram-btn {
    gap: 4px !important;
    padding: 0 !important;
  }

  .instructor-v1-carousel-container .instagram-btn span {
    font-size: 13px !important;
  }

  /* 화살표 숨기기 */
  .instructor-v1-carousel-container .carousel-nav-arrows {
    display: none !important;
  }

  /* 모바일 전문강사진 스타일 수정 */
  .instructor-v1-carousel-container .follower-count {
    font-size: 13px;
  }

  .instructor-v1-carousel-container
    .instructor-center-card
    .instagram-btn-container {
    gap: 16px;
  }

  .instructor-v1-carousel-container .left-gradient-overlay {
    display: none !important;
  }

  .instructor-v1-carousel-container
    .instructor-carousel-content
    .center-card-container
    .instructor-center-card {
    min-height: 335px !important;
  }

  .instructor-v1-carousel-container
    .instructor-center-card
    .instagram-btn-container {
    width: auto !important;
    height: auto !important;
    bottom: 25px !important;
    top: initial !important;

    left: 50% !important;
    transform: translateX(-50%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 이미지에만 fadeIn 애니메이션 적용 */
.instructor-center-card-image-container > img.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}
