/* =============================================
   main-doubt-premium: 이미지 카드 배너 섹션
   - 카드 크기: 350x350 고정
   - 이미지: object-fit: contain (잘림/확대 금지)
   ============================================= */

#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;
}

@media (max-width: 768px) {
  .mdp-hero {
    margin-bottom: 28px;
  }

  .mdp-hero-line1 {
    font-family: Pretendard, 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.5rem;
    letter-spacing: 0;
    color: #1f2429;
  }

  .mdp-hero-line2 {
    font-family: Pretendard, 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    color: #1f2429;
    margin-bottom: 0;
  }
}

.mdp-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   카드 공통 스타일
   ============================================= */
.mdp-card {
  width: 350px;
  height: 350px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.08),
    0 25px 50px rgba(0, 0, 0, 0.10);
  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;
}

/* =============================================
   PC: 3장 가로 정렬 그리드
   ============================================= */
.mdp-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

/* =============================================
   반응형 분기
   ============================================= */
.mdp-pc-only {
  display: flex;
}

.mdp-mobile-only {
  display: none;
}

@media (max-width: 1023px) {
  .mdp-pc-only {
    display: none;
  }

  .mdp-mobile-only {
    display: block;
  }

  #main-doubt-premium {
    padding: 48px 0;
    margin-bottom: 10px;
  }

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

  /* 모바일 카드: 가변 크기 */
  .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;
  }

  /* Swiper 슬라이드 */
  .mdp-swiper {
    padding-bottom: 40px;
  }

  .mdp-swiper .swiper-slide {
    display: flex;
    justify-content: center;
  }

  /* Pagination 스타일 */
  .mdp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -15px;
    z-index: 1;
    position: relative;
  }

  .mdp-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 1;
    transition: all 0.3s ease;
  }

  .mdp-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: #3f3f3f;
  }
}

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

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