/**
 * 자살유족 페이지 전용 스타일
 * 파일 위치: /src/css/suicide_survivors.css
 */

/* ========================================
   섹션 공통 스타일
======================================== */
.suicide_survivors_section {
    margin-bottom: 50px;
}

.suicide_survivors_section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c5aa0;
}

.suicide_survivors_section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
}

.suicide_survivors_section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin: 25px 0 12px;
}

.suicide_survivors_section p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.suicide_survivors_section .intro {
    font-size: 19px;
    line-height: 1.9;
    color: #444;
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #2c5aa0;
    margin-bottom: 25px;
}

.suicide_survivors_section .note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    padding-left: 10px;
}

.suicide_survivors_section .source {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin-top: 10px;
}

/* ========================================
   애도 반응 단계 (grief-stages) - 세로 나열형
======================================== */
.grief-stages {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.grief-stages .stage {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    border-left: 6px solid #2c5aa0;
}

.grief-stages .stage:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

/* 각 단계별 좌측 테두리 색상 */
.grief-stages .stage:nth-child(1) {
    border-left-color: #9B8579;
}

.grief-stages .stage:nth-child(2) {
    border-left-color: #7FA695;
}

.grief-stages .stage:nth-child(3) {
    border-left-color: #5B8AAE;
}

.grief-stages .stage:nth-child(4) {
    border-left-color: #B8A168;
}

.grief-stages .stage h3 {
    font-size: 20px;
    color: #fff;
    margin: 0;
    padding: 20px 80px 20px 25px;
    font-weight: 700;
    line-height: 1.5;
    position: relative;
}

/* 각 단계별 제목 배경 색상 */
.grief-stages .stage:nth-child(1) h3 {
    background: linear-gradient(135deg, #9B8579 0%, #8A7469 100%);
}

.grief-stages .stage:nth-child(2) h3 {
    background: linear-gradient(135deg, #7FA695 0%, #6E9584 100%);
}

.grief-stages .stage:nth-child(3) h3 {
    background: linear-gradient(135deg, #5B8AAE 0%, #4A799D 100%);
}

.grief-stages .stage:nth-child(4) h3 {
    background: linear-gradient(135deg, #B8A168 0%, #A79057 100%);
}

/* 오른쪽 아이콘 */
.grief-stages .stage h3::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 각 단계별 아이콘 */
/* 1. 충격과 무감각 - 경고/충격 아이콘 */
.grief-stages .stage:nth-child(1) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>');
}

/* 2. 그리움과 갈망 - 하트 아이콘 */
.grief-stages .stage:nth-child(2) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>');
}

/* 3. 절망과 혼란 - 구름/비 아이콘 */
.grief-stages .stage:nth-child(3) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="16" y1="13" x2="16" y2="17"></line><line x1="8" y1="13" x2="8" y2="17"></line><line x1="12" y1="15" x2="12" y2="19"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path></svg>');
}

/* 4. 회복 - 해/새싹 아이콘 */
.grief-stages .stage:nth-child(4) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>');
}


.grief-stages .stage p {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 25px 30px;
}

/* ========================================
   도움정보 버튼 (help-links)
======================================== */
.help-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.help-link-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #4a7bc8 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.help-link-btn::before {
    content: '▶';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: all 0.3s ease;
}

.help-link-btn:hover {
    background: linear-gradient(135deg, #1e4278 0%, #3865a8 100%);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
}

.help-link-btn:hover::before {
    right: 25px;
}

/* ========================================
   모달 (Modal)
======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f1f1;
    color: #333;
}

.modal-content h3 {
    font-size: 26px;
    color: #2c5aa0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c5aa0;
}

.modal-content h4 {
    font-size: 20px;
    color: #333;
    margin: 25px 0 15px;
}

.modal-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.modal-content ul {
    margin: 15px 0 15px 20px;
}

.modal-content ul li {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
}

.modal-content ol {
    margin: 15px 0 15px 20px;
}

.modal-content ol li {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.modal-content ol li strong {
    color: #2c5aa0;
    font-weight: 600;
}

/* ========================================
   테이블 (자조모임, 핫라인 등)
======================================== */
.self-help-group-table,
.hotline-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
}

.self-help-group-table th,
.self-help-group-table td {
    border: 1px solid #ddd;
    padding: 14px 10px;
    text-align: center;
}

.self-help-group-table th {
    background-color: #2c5aa0;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.self-help-group-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.self-help-group-table tbody tr:hover {
    background-color: #e9ecef;
}

.hotline-table td {
    border: 1px solid #ddd;
    padding: 18px 20px;
    font-size: 16px;
    line-height: 1.6;
}

.hotline-table td:first-child {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 40%;
}

.hotline-table td:last-child {
    color: #2c5aa0;
    font-weight: 700;
    font-size: 18px;
}

/* ========================================
   원스톱 서비스 (service-info)
======================================== */
.service-info h3 {
    font-size: 22px;
    color: #2c5aa0;
    margin: 30px 0 15px;
}

.service-info ul {
    margin: 15px 0 15px 25px;
}

.service-info ul li {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.service-info .detail-link {
    color: #2c5aa0;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.service-info .detail-link:hover {
    color: #1e4278;
}

/* 지원 내용 카드형 레이아웃 - 1줄 5개 심플 디자인 */
.support-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    width: 100%;
}

.support-card {
    flex: 0 0 auto;
    width: 160px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.support-card:hover {
    border-color: #2c5aa0;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.15);
    transform: translateY(-3px);
}

/* 카드 상단 영역 (아이콘 + 타이틀) */
.support-card-header {
    padding: 15px 10px 12px;
    margin: 0;
}

/* 각 카드별 헤더 배경색 */
.support-card.psychological .support-card-header {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe8f2 100%);
}

.support-card.self-help .support-card-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
}

.support-card.environmental .support-card-header {
    background: linear-gradient(135deg, #f6ffed 0%, #e8f8f0 100%);
}

.support-card.autopsy .support-card-header {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9ff 100%);
}

.support-card.medical .support-card-header {
    background: linear-gradient(135deg, #f0fdf9 0%, #e5f9f4 100%);
}

/* 클릭 가능한 카드 스타일 */
.support-card.environmental {
    cursor: pointer;
}

.support-card.environmental:hover {
    border-color: #52c41a;
}

/* 클릭 표시 텍스트 */
.support-card.environmental .support-card-desc::after {
    content: '자세히 보기 >';
    display: block;
    font-size: 12px;
    color: #52c41a;
    margin-top: 8px;
    font-weight: 600;
}

.support-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid;
    border-radius: 50%;
}

/* 각 카드별 아이콘 - 심플 버전 */
.support-card.psychological .support-card-icon {
    border-color: #ff6b9d;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b9d" stroke="%23ff6b9d" stroke-width="0"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
}

.support-card.self-help .support-card-icon {
    border-color: #4a90e2;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234a90e2"><circle cx="9" cy="7" r="4"/><circle cx="15" cy="7" r="4" opacity="0.7"/><path d="M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2" opacity="0.7"/><path d="M13 21v-2a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v2"/></svg>');
}

.support-card.environmental .support-card-icon {
    border-color: #52c41a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2352c41a"><path d="M12 3L2 12h3v9h6v-6h2v6h6v-9h3L12 3z"/></svg>');
}

.support-card.autopsy .support-card-icon {
    border-color: #7b68ee;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%237b68ee" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>');
}

.support-card.medical .support-card-icon {
    border-color: #00d4aa;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300d4aa"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>');
}

.support-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.support-card-desc {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.5;
    margin: 0;
    padding: 12px 10px;
}

.support-card button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* 환경경제적지원 표 스타일 */
.environmental-support-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.environmental-support-table th,
.environmental-support-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    vertical-align: middle;
}

.environmental-support-table th {
    background-color: #2c5aa0;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

/* 모달용 환경경제적지원 표: 지원항목 좁게, 지원내용 넓게 */
#modal-environmental-support .environmental-support-table th:first-child,
#modal-environmental-support .environmental-support-table td:first-child {
    width: 20%;
}

#modal-environmental-support .environmental-support-table th:last-child,
#modal-environmental-support .environmental-support-table td:last-child {
    width: 80%;
}

.environmental-support-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.environmental-support-table tbody tr:hover {
    background-color: #e9ecef;
}

.environmental-support-table td {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* ========================================
   지원 절차 프로세스 플로우
======================================== */
.process-flow {
    max-width: 450px;
    margin: 30px auto;
    padding: 20px;
}

.process-step-box {
    background: #fff;
    border: 2px solid #2c5aa0;
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.1);
}

.process-step-box:hover {
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
    transform: translateY(-3px);
}

.process-step-box h4 {
    font-size: 20px;
    color: #333;
    margin: 0;
    line-height: 1.6;
    font-weight: 600;
}

.process-step-box h4 span {
    font-size: 16px;
    font-weight: 400;
}

.process-step-box h4 span a {
    color: #0066cc;
    font-weight: bold;
}

/* 핫라인 링크 버튼 */
.hotline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a7bc8 100%);
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 3px;
    vertical-align: baseline;
    line-height: 1.4;
}

.hotline-link::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M7 15V9C7 7.9 7.9 7 9 7C10.1 7 11 7.9 11 9V13M11 11V8C11 6.9 11.9 6 13 6C14.1 6 15 6.9 15 8V13M15 10V9C15 7.9 15.9 7 17 7C18.1 7 19 7.9 19 9V15C19 18.3 16.3 21 13 21H11C8.2 21 6 18.8 6 16V15C6 13.9 6.9 13 8 13C8.6 13 9 13.4 9 14" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M11 13V4C11 2.9 10.1 2 9 2C7.9 2 7 2.9 7 4V9" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.hotline-link:hover {
    background: linear-gradient(135deg, #1e4278 0%, #3865a8 100%);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
}

/* 아래 방향 화살표 */
.process-arrow-down {
    width: 40px;
    height: 40px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-arrow-down svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(44, 90, 160, 0.2));
}

/* 가로 레이아웃 */
.process-flow.horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 100%;
    flex-wrap: wrap;
}

.process-flow.horizontal .process-step-box {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-flow.horizontal .process-step-box h4 {
    font-size: 16px;
    line-height: 1.5;
}

.process-arrow-right {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-arrow-right svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(44, 90, 160, 0.2));
}

/* 클릭 아이콘 (SVG) */
.click-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-left: 2px;
    display: inline-block;
}

/* ========================================
   사후대응 서비스 (process-diagram) - 1줄 6개 레이아웃
======================================== */
.process-diagram {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 35px;
    margin: 40px auto;
    max-width: 1400px;
    padding: 20px;
    position: relative;
}

.process-step-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    min-height: 300px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* 헤더 영역 (아이콘 + 제목) */
.process-step::before {
    content: '';
    width: 100%;
    padding-top: 130px;
    display: block;
    background: #9B8579;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 각 단계별 색상 그라데이션 - 헤더 영역 */
.process-step-wrapper:nth-child(1) .process-step::before {
    background: linear-gradient(135deg, #9B8579 0%, #8A7469 100%);
}

.process-step-wrapper:nth-child(2) .process-step::before {
    background: linear-gradient(135deg, #7FA695 0%, #6E9584 100%);
}

.process-step-wrapper:nth-child(3) .process-step::before {
    background: linear-gradient(135deg, #5B8AAE 0%, #4A799D 100%);
}

.process-step-wrapper:nth-child(4) .process-step::before {
    background: linear-gradient(135deg, #B8A168 0%, #A79057 100%);
}

.process-step-wrapper:nth-child(5) .process-step::before {
    background: linear-gradient(135deg, #A07B93 0%, #8F6A82 100%);
}

.process-step-wrapper:nth-child(6) .process-step::before {
    background: linear-gradient(135deg, #999999 0%, #888888 100%);
}

/* SVG 아이콘 영역 */
.process-step .step-icon {
    width: 50px;
    height: 50px;
    margin: 20px 0 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* 각 단계별 SVG 아이콘 - wrapper 기준 */
.process-step-wrapper:nth-child(1) .step-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>');
}

.process-step-wrapper:nth-child(2) .step-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line><line x1="9" y1="11" x2="15" y2="11"></line></svg>');
}

.process-step-wrapper:nth-child(3) .step-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle></svg>');
}

.process-step-wrapper:nth-child(4) .step-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line></svg>');
}

.process-step-wrapper:nth-child(5) .step-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>');
}

.process-step-wrapper:nth-child(6) .step-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>');
}

/* 화살표 - 삼각형 스타일 (헤더 하단에 맞춤) */
.process-step-wrapper::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 130px;
    transform: translateY(-100%);
    width: 0;
    height: 0;
    border-left: 18px solid #9B8579;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    z-index: 2;
}

/* 각 단계별 화살표 색상 */
.process-step-wrapper:nth-child(1)::after {
    border-left-color: #8A7469;
}

.process-step-wrapper:nth-child(2)::after {
    border-left-color: #6E9584;
}

.process-step-wrapper:nth-child(3)::after {
    border-left-color: #4A799D;
}

.process-step-wrapper:nth-child(4)::after {
    border-left-color: #A79057;
}

.process-step-wrapper:nth-child(5)::after {
    border-left-color: #8F6A82;
}

/* 마지막 카드(6번)는 오른쪽 화살표 제거 */
.process-step-wrapper:nth-child(6)::after {
    display: none;
}

/* 화살표 요소 제거 (CSS로 화살표 생성) */
.process-arrow {
    display: none;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.process-step .step-number {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.process-step h4 {
    font-size: 14px;
    color: #fff;
    margin: 0 0 18px;
    padding: 0 10px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.process-step .step-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 8px 28px 16px;
    position: relative;
    z-index: 1;
}

.process-step ul {
    margin: 0;
    padding: 0 16px;
    list-style: none;
    text-align: left;
}

.process-step ul li {
    font-size: 12px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
    word-break: keep-all;
}

.process-step ul li:last-child {
    margin-bottom: 0;
}

.process-step ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
    font-size: 13px;
}

.process-step .step-extra {
    font-size: 11px;
    line-height: 1.6;
    color: #555;
    margin: 8px 6px 0;
    font-weight: 400;
    text-align: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* ========================================
   현장개입 서비스 (intervention-item)
======================================== */
.intervention-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.intervention-item:hover {
    border-color: #2c5aa0;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
}

.intervention-item h3 {
    font-size: 20px;
    color: #2c5aa0;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.intervention-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* ========================================
   영상 컨테이너 (video-container)
======================================== */
.video-container {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin: 30px 0;
}

.video-container p {
    font-size: 18px;
    color: #999;
    margin: 0;
}

/* 실제 영상 임베드 시 */
.video-container iframe,
.video-container video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 10px;
}

/* ========================================
   반응형 (Responsive)
======================================== */
/* 태블릿 및 중간 크기 화면 (1200px 이하) - 3열 그리드 */
@media (max-width: 1200px) {
    .process-diagram {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 900px;
    }

    .process-step {
        min-height: 280px;
    }

    .process-step::before {
        padding-top: 125px;
    }

    .process-step-wrapper::after {
        top: 125px;
        transform: translateY(-100%);
    }

    .process-step .step-content {
        padding: 18px 24px 20px;
    }

    .process-step ul {
        padding: 0 5px;
    }

    .process-step .step-extra {
        padding: 9px 11px;
        margin: 8px 5px 0;
    }

    /* 3열 레이아웃에서 화살표 조정 */
    .process-step-wrapper:nth-child(3)::after,
    .process-step-wrapper:nth-child(6)::after {
        display: none;
    }

    /* 태블릿: 카드 스타일 */
    .support-cards {
        gap: 15px;
    }

    .support-card {
        width: 140px;
        padding: 18px 12px;
    }
}

/* 모바일 (768px 이하) - 2열 그리드 */
@media (max-width: 768px) {
    .suicide_survivors_section h2 {
        font-size: 24px;
    }

    .suicide_survivors_section h3 {
        font-size: 19px;
    }

    .suicide_survivors_section h4 {
        font-size: 17px;
    }

    .suicide_survivors_section p,
    .suicide_survivors_section .intro {
        font-size: 15px;
    }

    .support-cards {
        gap: 12px;
    }

    .support-card {
        width: calc(50% - 10px);
        padding: 15px 10px;
    }

    .support-card-icon {
        width: 50px;
        height: 50px;
        background-size: 26px 26px;
    }

    .support-card-title {
        font-size: 14px;
    }

    .support-card-desc {
        font-size: 12px;
    }

    .support-card.environmental .support-card-desc::after {
        font-size: 11px;
        margin-top: 6px;
    }

    .environmental-support-table {
        font-size: 14px;
    }

    .environmental-support-table th,
    .environmental-support-table td {
        padding: 12px 10px;
    }

    .environmental-support-table th {
        font-size: 15px;
    }

    .environmental-support-table td {
        font-size: 15px;
    }

    .process-flow {
        max-width: 100%;
        padding: 10px;
    }

    .process-step-box {
        padding: 20px 18px;
        border-radius: 15px;
    }

    .process-step-box h4 {
        font-size: 16px;
    }

    .hotline-link {
        font-size: 16px;
        padding: 3px 10px;
    }

    .process-arrow-down {
        width: 35px;
        height: 35px;
        margin: 12px auto;
    }

    /* 가로 레이아웃 모바일 대응 - 세로로 변경 */
    .process-flow.horizontal {
        flex-direction: column;
        gap: 10px;
    }

    .process-flow.horizontal .process-step-box {
        width: 100%;
        max-width: 100%;
    }

    .process-arrow-right {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .grief-stages .stage h3 {
        font-size: 18px;
        padding: 18px 70px 18px 20px;
    }

    .grief-stages .stage h3::before {
        width: 40px;
        height: 40px;
        right: 15px;
        background-size: 22px 22px;
    }

    .grief-stages .stage p {
        font-size: 16px;
        padding: 20px 22px;
    }

    .help-link-btn {
        font-size: 16px;
        padding: 18px 25px;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-content h3 {
        font-size: 22px;
    }

    .modal-content h4 {
        font-size: 18px;
    }

    .self-help-group-table {
        font-size: 13px;
    }

    .self-help-group-table th,
    .self-help-group-table td {
        padding: 10px 6px;
    }

    .hotline-table {
        font-size: 14px;
    }

    .hotline-table td {
        padding: 14px 12px;
        display: block;
        width: 100%;
    }

    .hotline-table td:first-child {
        border-bottom: none;
        padding-bottom: 8px;
    }

    .hotline-table td:last-child {
        padding-top: 8px;
        font-size: 16px;
    }

    /* 모바일: 2열 그리드 */
    .process-diagram {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 25px;
        padding: 20px 10px;
        max-width: 650px;
    }

    .process-step {
        min-height: 260px;
    }

    .process-step::before {
        padding-top: 115px;
    }

    .process-step .step-icon {
        width: 45px;
        height: 45px;
        margin: 18px 0 10px;
    }

    .process-step .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }

    .process-step h4 {
        font-size: 13px;
        margin: 0 0 14px;
        min-height: 40px;
    }

    .process-step .step-content {
        padding: 16px 22px 18px;
    }

    .process-step ul {
        padding: 0 4px;
    }

    .process-step ul li {
        font-size: 11px;
        margin-bottom: 5px;
        padding-left: 16px;
    }

    .process-step .step-extra {
        font-size: 10px;
        padding: 8px 10px;
        margin: 7px 4px 0;
    }

    /* 화살표 재배치 - 2열 레이아웃용 */
    .process-step-wrapper::after {
        right: -20px;
        top: 115px;
        transform: translateY(-100%);
        border-left: 15px solid #9B8579;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
    }

    /* 홀수 카드만 화살표 표시 */
    .process-step-wrapper:nth-child(even)::after {
        display: none;
    }

    .process-step-wrapper:nth-child(odd)::after {
        display: block;
    }

    /* 5번 카드는 화살표 없음 */
    .process-step-wrapper:nth-child(5)::after {
        display: none;
    }

    .video-container iframe,
    .video-container video {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

@media (max-width: 480px) {
    .suicide_survivors_section h2 {
        font-size: 21px;
    }

    .support-cards {
        gap: 10px;
    }

    .support-card {
        width: calc(50% - 8px);
        padding: 12px 8px;
    }

    .support-card-icon {
        width: 45px;
        height: 45px;
        background-size: 24px 24px;
        margin-bottom: 10px;
    }

    .support-card-title {
        font-size: 13px;
    }

    .support-card-desc {
        font-size: 11px;
    }

    .support-card.environmental .support-card-desc::after {
        font-size: 10px;
        margin-top: 5px;
    }

    .environmental-support-table th,
    .environmental-support-table td {
        padding: 10px 8px;
        font-size: 14px;
    }

    .environmental-support-table th {
        font-size: 14px;
    }

    .process-flow {
        padding: 5px;
    }

    .process-step-box {
        padding: 18px 15px;
        border-radius: 12px;
    }

    .process-step-box h4 {
        font-size: 15px;
    }

    .hotline-link {
        font-size: 15px;
        padding: 2px 8px;
    }

    .process-arrow-down {
        width: 30px;
        height: 30px;
        margin: 10px auto;
    }

    .grief-stages .stage {
        border-left-width: 5px;
    }

    .grief-stages .stage h3 {
        font-size: 16px;
        padding: 16px 60px 16px 18px;
    }

    .grief-stages .stage h3::before {
        width: 36px;
        height: 36px;
        right: 12px;
        background-size: 20px 20px;
    }

    .grief-stages .stage p {
        font-size: 15px;
        padding: 18px 20px;
    }

    .help-link-btn {
        font-size: 15px;
        padding: 16px 20px;
    }

    .help-link-btn::before {
        right: 20px;
        font-size: 16px;
    }

    .modal-content {
        padding: 25px 15px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }

    .self-help-group-table {
        font-size: 12px;
    }

    .self-help-group-table th,
    .self-help-group-table td {
        padding: 8px 4px;
    }

    /* 작은 모바일: 1열 */
    .process-diagram {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 380px;
    }

    .process-step {
        min-height: 240px;
    }

    .process-step::before {
        padding-top: 110px;
    }

    .process-step .step-icon {
        width: 45px;
        height: 45px;
        margin: 16px 0 10px;
    }

    .process-step .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
        top: 10px;
        right: 10px;
    }

    .process-step h4 {
        font-size: 13px;
        min-height: 40px;
    }

    .process-step .step-content {
        padding: 15px 20px 18px;
    }

    .process-step ul {
        padding: 0 4px;
    }

    .process-step ul li {
        font-size: 11px;
        margin-bottom: 5px;
        padding-left: 16px;
    }

    .process-step .step-extra {
        font-size: 10px;
        padding: 8px 10px;
        margin: 6px 4px 0;
    }

    /* 모든 가로 화살표 제거, 아래 화살표만 표시 */
    .process-step-wrapper::after {
        display: block;
        position: absolute;
        left: 50%;
        bottom: -24px;
        transform: translateX(-50%);
        right: auto;
        top: auto;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 15px solid #9B8579;
        border-bottom: 0;
    }

    /* 각 단계별 아래 화살표 색상 */
    .process-step-wrapper:nth-child(1)::after {
        border-top-color: #8A7469;
    }

    .process-step-wrapper:nth-child(2)::after {
        border-top-color: #6E9584;
    }

    .process-step-wrapper:nth-child(3)::after {
        border-top-color: #4A799D;
    }

    .process-step-wrapper:nth-child(4)::after {
        border-top-color: #A79057;
    }

    .process-step-wrapper:nth-child(5)::after {
        border-top-color: #8F6A82;
    }

    /* 마지막 카드만 화살표 제거 */
    .process-step-wrapper:last-child::after {
        display: none;
    }
}
