/* =============================================
   main-doubt-premium: 이미지 카드 배너 섹션
   - PC/모바일 모두 Swiper 슬라이더 적용
   ============================================= */

#main-doubt-premium {
  padding: 66px 0;
  background: #fff;
  margin-bottom: 60px;
}

/* 히어로 문구 */
.mdp-hero {
  text-align: center;
  margin-bottom: 65px;
}

.mdp-hero-line1,
.mdp-hero-line2 {
  font-family: Pretendard, 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.4;
  text-align: center;
  word-break: keep-all;
  color: #1f2429;
  margin: 0 auto;
  width: fit-content;
}

.mdp-hero .highlight-blue {
  color: #3b82f6;
}

.mdp-container {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   슬라이더 래퍼
   ============================================= */
.mdp-slider-wrapper {
  position: relative;
  padding: 0 60px;
}

.mdp-swiper {
  overflow: hidden;
}

/* =============================================
   카드 공통 스타일
   ============================================= */
.mdp-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 25px 50px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgb(221, 221, 221);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mdp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mdp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.10),
    0 32px 64px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mdp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 250% 250%;
  background-position: 100% 100%;
  opacity: 0;
  transition: opacity 0.3s ease, background-position 0.5s ease;
  pointer-events: none;
}

.mdp-card:hover::after {
  opacity: 1;
  background-position: 0% 0%;
}

.mdp-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =============================================
   네비게이션 버튼
   ============================================= */
.mdp-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  color: #374151;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdp-nav-btn:hover {
  background: #f3f4f6;
  transform: translateY(-50%) scale(1.1);
}

.mdp-prev {
  left: 0;
}

.mdp-next {
  right: 0;
}

/* =============================================
   페이지네이션
   ============================================= */
.mdp-pagination {
  display: block !important;
  position: relative !important;
  bottom: auto !important;
  margin-top: 24px;
  text-align: center;
}

.mdp-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #d1d5db;
  opacity: 1;
  margin: 0 5px;
}

.mdp-pagination .swiper-pagination-bullet-active {
  background: #000000;
  width: 28px;
  border-radius: 5px;
}

/* =============================================
   모바일 반응형
   ============================================= */
@media (max-width: 768px) {
  #main-doubt-premium {
    padding: 48px 0;
    margin-bottom: 10px;
  }

  .mdp-hero {
    margin-bottom: 28px;
  }

  .mdp-hero-line1 {
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.5rem;
    letter-spacing: 0;
  }

  .mdp-hero-line2 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    margin-bottom: 0;
  }

  .mdp-container {
    padding: 0 16px;
  }

  .mdp-slider-wrapper {
    padding: 0;
  }

  .mdp-nav-btn {
    display: none;
  }

  /* 모바일 카드: 가변 크기 */
  .mdp-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 16px;
  }

  .mdp-card:hover {
    transform: none;
  }

  .mdp-card::before,
  .mdp-card::after {
    border-radius: 16px;
  }
}

/* 작은 모바일 화면 */
@media (max-width: 400px) {
  .mdp-card {
    max-width: 100%;
    border-radius: 12px;
  }

  .mdp-card::before,
  .mdp-card::after {
    border-radius: 12px;
  }
}
