/**
 * Main Content Styles
 * 모든 템플릿에서 공통으로 사용하는 본문 콘텐츠 스타일
 * 절대경로: /service/template/web5/c0107-all/main-content/main-content.css
 *
 * 사용 템플릿: M, A, T, H, B, P, Q
 * @version 1.0.0
 */

/* ========================================
   공통 컨테이너
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Section 1: 대학병원 진료 대기시간 해결 섹션
   ======================================== */
.hospital-waiting-section {
  background: #ffffff;
  padding: 6rem 0 0 0;
  position: relative;
  overflow: hidden;
  border-bottom: none;
}

.hospital-waiting-content {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
  align-items: start !important;
  position: relative !important;
  z-index: 1 !important;
  min-height: auto !important;
  height: auto !important;
}

.hospital-waiting-text {
  color: #1e293b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1rem 0;
}

.hospital-waiting-title {
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.hospital-waiting-title .title-main {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #475569;
  line-height: 1.2;
}

.hospital-waiting-title .title-highlight {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.hospital-waiting-description {
  font-size: 1rem;
  line-height: 1.5;
}

.hospital-waiting-description p {
  margin-bottom: 0.6rem;
  color: #64748b;
}

.hospital-waiting-description .description-main {
  font-size: 1.1rem;
  font-weight: 600;
  color: #334155;
}

.hospital-waiting-description .description-sub {
  font-size: 1rem;
  color: #475569;
}

.hospital-waiting-description .description-cta {
  font-size: 1rem;
  font-weight: 700;
  color: #dc2626;
  margin-top: 1.2rem;
  padding: 0.6rem 0;
  border-top: 2px solid #f1f5f9;
}

.hospital-waiting-image {
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hospital-news-image {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 4px solid #ffffff;
  object-fit: contain;
}

.hospital-news-image:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

.hospital-waiting-video {
  margin-top: 3rem;
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: #000;
}

.video-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

/* ========================================
   Section 2: 병원 건물 패럴렉스 섹션 (모바일 친화적)
   ======================================== */
.hospital-parallax-section {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/service/template/images/all/bg/parallax/ty_bg.jpg");
  background-size: 150%;
  background-position: center 40%;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

.parallax-content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.parallax-text-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  transform: translateY(0);
  opacity: 0;
  animation: slideUpFadeIn 1s ease-out 0.5s forwards;
}

.parallax-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 2.1;
  margin: 0;
  padding: 0;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.parallax-title .highlight-text {
  color: #ffd700;
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
}

@keyframes slideUpFadeIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   모바일 반응형 (768px 이하)
   ======================================== */
@media (max-width: 768px) {
  .hospital-waiting-section {
    padding: 4rem 0;
  }

  .hospital-waiting-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hospital-waiting-title .title-main {
    font-size: 1.5rem;
  }

  .hospital-waiting-title .title-highlight {
    font-size: 1.8rem;
  }

  .hospital-waiting-description .description-main {
    font-size: 1rem;
  }

  .hospital-waiting-description .description-sub {
    font-size: 0.95rem;
  }

  .hospital-news-image {
    max-width: 96%;
    max-height: none !important;
  }

  .hospital-waiting-video {
    margin-top: 2rem;
  }

  .video-container {
    max-width: 100%;
    border-radius: 15px;
  }

  .video-container iframe {
    height: 250px;
  }

  .hospital-parallax-section {
    height: 400px;
    background-size: 200%;
  }

  .parallax-text-container {
    max-width: 90%;
    padding: 0 20px;
    border: none;
  }

  .parallax-title {
    font-size: 1.4rem;
    line-height: 1.8;
    word-break: keep-all;
  }
}

/* ========================================
   모바일 반응형 (480px 이하)
   ======================================== */
@media (max-width: 480px) {
  .hospital-waiting-section {
    padding: 3rem 0;
  }

  .hospital-waiting-content {
    min-height: auto !important;
    gap: 1.5rem !important;
  }

  .hospital-waiting-title .title-main {
    font-size: 1.3rem;
  }

  .hospital-waiting-title .title-highlight {
    font-size: 1.6rem;
  }

  .hospital-waiting-description .description-main {
    font-size: 0.95rem;
  }

  .hospital-waiting-description .description-sub {
    font-size: 0.9rem;
  }

  .hospital-waiting-description .description-cta {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .hospital-news-image {
    max-width: 96%;
    max-height: none !important;
  }

  .hospital-waiting-video {
    margin-top: 1.5rem;
  }

  .video-container {
    max-width: 100%;
    border-radius: 12px;
  }

  .video-container iframe {
    height: 200px;
  }

  .hospital-parallax-section {
    height: 350px;
    background-size: 250%;
  }

  .parallax-text-container {
    max-width: 90%;
    padding: 0 15px;
    border: none;
  }

  .parallax-title {
    font-size: 1.2rem;
    line-height: 1.7;
    word-break: keep-all;
  }

  .parallax-title br {
    display: inline;
  }

  .parallax-title br::after {
    content: " ";
  }
}

/* ========================================
   Section 3: 프리미엄 헬스케어 서비스
   ======================================== */
.premium-healthcare-section {
  background: #f8fafc;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.premium-header {
  text-align: center;
  margin-bottom: 4rem;
}

.premium-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #333d4b;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.premium-subtitle {
  font-size: 1.3rem;
  color: #6b7280;
  line-height: 1.6;
}

.premium-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.premium-service-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06),
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.1),
    4px 4px 12px rgba(0, 0, 0, 0.1),
    0 12px 30px rgba(0, 0, 0, 0.12);
}

.premium-service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 25px 50px rgba(0, 0, 0, 0.2),
    0 15px 35px rgba(0, 0, 0, 0.15),
    8px 8px 20px rgba(0, 0, 0, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.18);
  border-color: #d1d5db;
}

.service-header {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1.5rem 0 1rem 0;
}

.service-header-image-container {
  width: calc(100% + 10rem);
  height: 200px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  margin: -2.5rem -2.5rem 0 -2.5rem;
  position: relative;
  left: -2.5rem;
  right: -2.5rem;
  box-sizing: border-box;
}

.service-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
  filter: brightness(1.05) contrast(1.1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-width: 100%;
  max-width: 100%;
  transform: none;
}

.service-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333d4b;
  margin-bottom: 0.3rem;
}

.service-note {
  font-size: 0.9rem;
  color: #ea5533;
  font-weight: 600;
  background: rgba(234, 85, 51, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
}

.service-content {
  padding-top: 0.5rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  position: relative;
  padding: 0.8rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  transition: all 0.3s ease;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li:hover {
  color: #333d4b;
  padding-left: 0.5rem;
}

.highlight-star {
  color: #ea5533;
  font-weight: 700;
}

.service-detail {
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 0.2rem;
  display: block;
}

.service-summary {
  font-weight: 600;
  color: #ea5533;
  font-size: 0.9rem;
  background: rgba(234, 85, 51, 0.1);
  padding: 0.8rem;
  border-radius: 12px;
  margin-top: 1rem;
  text-align: center;
}

/* 병원 제휴망 버튼 */
.hospital-network-container {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
  position: relative;
}

.hospital-network-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 2px solid #667eea;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.hospital-network-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.hospital-network-btn:active {
  transform: translateY(-1px);
}

/* ========================================
   Section 3 모바일 반응형 (768px 이하)
   ======================================== */
@media (max-width: 768px) {
  .premium-healthcare-section {
    padding: 4rem 0;
  }

  .premium-title {
    font-size: 2.5rem;
  }

  .premium-subtitle {
    font-size: 1.1rem;
  }

  .premium-services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5%;
    width: 99%;
    margin: 0 auto;
  }

  .premium-service-card {
    padding: 2rem;
    box-shadow:
      0 1px 3px 0 rgba(0, 0, 0, 0.1),
      0 1px 2px 0 rgba(0, 0, 0, 0.06),
      0 10px 30px rgba(0, 0, 0, 0.18),
      0 5px 15px rgba(0, 0, 0, 0.12),
      5px 5px 15px rgba(0, 0, 0, 0.12),
      0 15px 35px rgba(0, 0, 0, 0.15);
  }

  .premium-service-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.1),
      0 10px 10px -5px rgba(0, 0, 0, 0.04),
      0 25px 50px rgba(0, 0, 0, 0.2),
      0 15px 35px rgba(0, 0, 0, 0.15),
      8px 8px 20px rgba(0, 0, 0, 0.15),
      0 20px 40px rgba(0, 0, 0, 0.18);
  }

  .service-title {
    font-size: 1.6rem;
  }

  .service-header-image-container {
    height: 160px;
    margin: -2rem -2rem 0 -2rem;
    width: calc(100% + 8rem);
    left: -2rem;
    border-radius: 28px 28px 0 0;
    right: -2rem;
    overflow: hidden;
  }

  .service-header-image {
    width: 100%;
    min-width: 100%;
  }

  .hospital-network-btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 40px;
  }
}

/* ========================================
   Section 3 모바일 반응형 (480px 이하)
   ======================================== */
@media (max-width: 480px) {
  .premium-title {
    font-size: 1.75rem;
    word-break: keep-all;
    white-space: nowrap;
  }

  .premium-services-grid {
    width: 99%;
    padding: 0 0.5%;
  }

  .premium-service-card {
    padding: 1.5rem;
    box-shadow:
      0 1px 3px 0 rgba(0, 0, 0, 0.1),
      0 1px 2px 0 rgba(0, 0, 0, 0.06),
      0 12px 35px rgba(0, 0, 0, 0.2),
      0 6px 18px rgba(0, 0, 0, 0.15),
      6px 6px 18px rgba(0, 0, 0, 0.15),
      0 18px 40px rgba(0, 0, 0, 0.18);
  }

  .premium-service-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.1),
      0 10px 10px -5px rgba(0, 0, 0, 0.04),
      0 25px 50px rgba(0, 0, 0, 0.2),
      0 15px 35px rgba(0, 0, 0, 0.15),
      8px 8px 20px rgba(0, 0, 0, 0.15),
      0 20px 40px rgba(0, 0, 0, 0.18);
  }

  .service-list li {
    font-size: 0.95rem;
  }

  .service-header-image-container {
    height: 140px;
    margin: -1.5rem -1.5rem 0 -1.5rem;
    width: calc(100% + 6rem);
    left: -1.5rem;
    border-radius: 28px 28px 0 0;
    right: -1.5rem;
    overflow: hidden;
  }

  .service-header-image {
    width: 100%;
    min-width: 100%;
  }

  .hospital-network-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 35px;
  }
}

/* ========================================
   추가 필수고지사항 버튼 스타일
   ======================================== */
.service-note {
  font-size: 0.85rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-disclosure-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.service-disclosure-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.service-disclosure-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

@media (max-width: 768px) {
  .service-note {
    font-size: 0.75rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
  }

  .service-disclosure-btn {
    font-size: 0.65rem;
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    margin-top: 0.4rem;
    width: auto;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .service-note {
    font-size: 0.7rem;
  }

  .service-disclosure-btn {
    font-size: 0.6rem;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
  }
}

/* ========================================
   필수고지사항 모달 모바일 스타일
   ======================================== */
#disclosureModal {
  font-size: 16px;
}

@media (max-width: 768px) {
  #disclosureModal h2 {
    font-size: 18px !important;
  }

  #disclosureModal h3 {
    font-size: 16px !important;
  }

  #disclosureModal p,
  #disclosureModal li {
    font-size: 14px !important;
  }

  #disclosureModal section {
    margin-bottom: 30px !important;
  }

  #disclosureModal div[style*="padding: 20px"] {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  #disclosureModal h2 {
    font-size: 16px !important;
    margin-bottom: 15px !important;
  }

  #disclosureModal h3 {
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }

  #disclosureModal p,
  #disclosureModal li {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  #disclosureModal section {
    margin-bottom: 25px !important;
  }

  #disclosureModal div[style*="padding"] {
    padding: 12px !important;
  }

  #disclosureModal div[style*="margin-bottom: 25px"] {
    margin-bottom: 15px !important;
  }
}

