/**
 * 우리마음상담센터 - 단순 페이지 스타일
 * 인사말, 강제입원, 강제입원절차방법 등 텍스트 중심 페이지
 */

/* 이미지 플레이스홀더 - 단순 페이지용 (통일된 스타일) */
.service-image-placeholder {
    width: 100% !important;
    margin: 1.5rem 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* PC에서는 고정 높이 400px */
@media (min-width: 769px) {
    .service-image-placeholder {
        height: 400px !important;
    }
}

/* 모바일에서는 16:9 비율 */
@media (max-width: 768px) {
    .service-image-placeholder {
        aspect-ratio: 16/9 !important;
        height: auto !important;
    }
}

/* 빈 플레이스홀더 텍스트 */
.service-image-placeholder:empty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    color: #6c757d !important;
    font-size: 1.1rem !important;
    background: #f8f9fa !important;
    border: 2px dashed #dee2e6 !important;
}

.service-image-placeholder:empty::before {
    content: "📷 이미지가 들어갈 영역";
}

/* 강제입원 페이지 특화 이미지 스타일 */
.service-page-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 12px !important;
    display: block !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease !important;
}

.service-image-placeholder:hover .service-page-image {
    transform: scale(1.02) !important;
}

/* 비디오 플레이스홀더 - 이미지 플레이스홀더와 동일한 스타일 */
.video-placeholder {
    width: 100% !important;
    margin: 1.5rem 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* PC에서는 고정 높이 400px */
@media (min-width: 769px) {
    .video-placeholder {
        height: 400px !important;
    }
}

/* 모바일에서는 16:9 비율 */
@media (max-width: 768px) {
    .video-placeholder {
        aspect-ratio: 16/9 !important;
        height: auto !important;
    }
}

/* 빈 플레이스홀더 텍스트 */
.video-placeholder:empty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    color: #6c757d !important;
    font-size: 1.1rem !important;
    background: #f8f9fa !important;
    border: 2px dashed #dee2e6 !important;
}

.video-placeholder:empty::before {
    content: "🎥 비디오가 들어갈 영역";
}

/* 비디오 플레이스홀더 내 이미지 스타일 */
.video-placeholder img,
.video-placeholder .service-page-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 12px !important;
    display: block !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease !important;
}

.video-placeholder:hover img,
.video-placeholder:hover .service-page-image {
    transform: scale(1.02) !important;
}

/* ========================================
   이미지 플레이스홀더 - 단순 페이지용 (통일된 스타일)
   ======================================== */
.image-placeholder {
    width: 100% !important;
    margin: 1.5rem 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* PC에서는 고정 높이 400px */
@media (min-width: 769px) {
    .image-placeholder {
        height: 400px !important;
    }
}

/* 모바일에서는 16:9 비율 */
@media (max-width: 768px) {
    .image-placeholder {
        aspect-ratio: 16/9 !important;
        height: auto !important;
    }
}

/* 빈 플레이스홀더 텍스트 */
.image-placeholder:empty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    color: #6c757d !important;
    font-size: 1.1rem !important;
    background: #f8f9fa !important;
    border: 2px dashed #dee2e6 !important;
}

.image-placeholder:empty::before {
    content: "📷 이미지가 들어갈 영역";
}

/* 이미지 스타일 */
.image-placeholder img,
.image-placeholder .service-page-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 12px !important;
    display: block !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease !important;
}

.image-placeholder:hover img,
.image-placeholder:hover .service-page-image {
    transform: scale(1.02) !important;
}

/* ========================================
   기본 페이지 레이아웃
   ======================================== */
.page-content h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-content h2 {
    color: #3498DB;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.page-content h4 {
    color: #555;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
}

/* 단락 스타일 */
.page-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.page-content p strong {
    color: #333;
    font-weight: 600;
}

/* 리스트 스타일 */
.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content ul li,
.page-content ol li {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.page-content ul li strong,
.page-content ol li strong {
    color: #333;
}

/* ========================================
   특수 요소
   ======================================== */
/* 이미지/비디오 플레이스홀더 */
.image-placeholder,
.video-placeholder {
    width: 100%;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: block;
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
    position: relative;
}

.video-placeholder {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-page-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 구분선 */
hr {
    border: none;
    border-top: 2px solid #3498DB;
    margin: 2rem 0;
}

/* 안내 박스 */
.page-content > div[style*="background: #f8f9fa"] {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27AE60;
    margin: 1rem 0;
}

/* ========================================
   서비스 아이콘 스타일 (🔹)
   ======================================== */
.page-content h3:contains("🔹") {
    color: #3498DB;
    font-weight: 600;
}

/* ========================================
   반응형 스타일
   ======================================== */
@media (max-width: 768px) {
    .page-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .page-content h2 {
        font-size: 1.4rem;
    }
    
    .page-content h3 {
        font-size: 1.2rem;
    }
    
    .page-content p,
    .page-content li {
        font-size: 0.95rem;
    }
    
    .page-content ul,
    .page-content ol {
        padding-left: 1.5rem;
    }
    
    .image-placeholder,
    .video-placeholder {
        padding: 2rem 1rem;
        font-size: 0.9rem;
    }
    
    .video-placeholder {
        min-height: 250px;
    }
}
