/* ============================================================
   Single Saint Styles: "Sacred Manuscript" Theme (Refined)
   ============================================================ */

/* 폰트 임포트 (클래식한 느낌을 위해) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Noto+Sans+KR:wght@300;400;500&display=swap');

/* --- 전체 레이아웃 및 배경 --- */
.saint-profile-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 25px; /* 좌우 패딩 증가 */
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #FDFBF5; /* 양피지 배경 */
    border: 1px solid #D4C5A5; /* 옅은 테두리 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    line-height: 1.7; /* 기본 줄 간격 설정 */
    color: #5D4037; /* 기본 텍스트 색상 */
}

.saint-profile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 30px;
}

/* --- 사이드바 (초상화 및 핵심 정보) --- */
.saint-sidebar {
    flex: 1;
    min-width: 300px;
    max-width: 360px;
    position: sticky;
    top: 40px;
    align-self: flex-start; /* 상단에 고정 */
}

.saint-card {
    background-color: transparent;
    border: 1px solid #EADDC6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.saint-card .saint-portrait {
    width: 180px; /* 이미지 크기 약간 증가 */
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px auto; /* 중앙 정렬 및 하단 여백 */
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #6B4F4B, 0 5px 15px rgba(107, 79, 75, 0.2);
}

.saint-card .saint-name {
    font-family: 'Merriweather', serif;
    font-size: 2.6em; /* 폰트 크기 증가 */
    font-weight: 700;
    color: #5D4037;
    margin-bottom: 8px;
    line-height: 1.2;
}

.saint-card .original-name {
    font-size: 1.05em;
    color: #8A6F5E;
    margin-bottom: 20px;
    font-style: italic;
}

.saint-card .saint-subtitle {
    font-size: 1.15em;
    color: #6B4F4B;
    margin-bottom: 25px;
    line-height: 1.5;
}

.saint-card .saint-meta {
    list-style: none;
    padding: 25px 0 0 0;
    margin: 25px 0 0 0;
    text-align: left;
    border-top: 1px dashed #D4C5A5;
}

.saint-card .saint-meta li {
    margin-bottom: 15px; /* 항목 간 여백 증가 */
    font-size: 1em;
    color: #6B4F4B;
    line-height: 1.6;
}

.saint-card .saint-meta li:last-child { margin-bottom: 0; }

.saint-card .saint-meta li strong {
    color: #5D4037;
    min-width: 90px; /* 라벨 너비 확보 */
    display: inline-block;
    font-weight: 500;
}

/* --- 본문 내용 (생애, 연보 등) --- */
.saint-content {
    flex: 2.5;
    min-width: 0;
    padding-top: 10px; /* 상단 여백 조정 */
}

.saint-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.1em; /* 폰트 크기 약간 증가 */
    color: #8A6F5E;
    margin-top: 30px; /* 섹션 상단 여백 */
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EADDC6;
    font-weight: 700;
}

.saint-content h2:first-of-type { margin-top: 0; } /* 첫 h2는 상단 여백 없음 */

.saint-content .bio-content,
.saint-content .saint-chronology {
    font-size: 1.05em; /* 본문 폰트 크기 */
    line-height: 1.8;
    color: #5D4037;
    margin-bottom: 30px; /* 단락 하단 여백 */
}

.saint-content .bio-content p,
.saint-content .saint-chronology p {
    margin-bottom: 1.2em;
}

/* --- 아코디언 (묵상 포인트) --- */
.saint-reflection.accordion {
    border: 1px solid #EADDC6;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 40px;
}

.accordion-toggle {
    width: 100%;
    background-color: #EADDC6;
    border: none;
    padding: 18px 25px;
    text-align: left;
    font-size: 1.15em; /* 폰트 크기 약간 증가 */
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6B4F4B;
}

.accordion-toggle:hover {
    background-color: #D4AF37;
    color: #fff;
}

.accordion-toggle.active {
    background-color: #6B4F4B;
    color: #FDFBF5;
}

.accordion-toggle::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.accordion-toggle.active::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 25px;
    background-color: transparent;
    display: none;
    line-height: 1.8;
    color: #5D4037;
}

/* --- 반응형 디자인 --- */
@media (max-width: 1024px) {
    .saint-profile-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }
    .saint-sidebar {
        position: static;
        max-width: 100%;
    }
    .saint-card {
        padding: 25px;
    }
    .saint-content {
        padding-top: 0;
    }
    .saint-content h2 {
        font-size: 1.8em;
        margin-top: 25px;
    }
    .accordion-toggle {
        font-size: 1.05em;
        padding: 15px 20px;
    }
    .accordion-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .saint-profile-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }
    .saint-card .saint-name {
        font-size: 2.2em;
    }
    .saint-card .saint-portrait {
        width: 150px;
        height: 150px;
    }
    .saint-content h2 {
        font-size: 1.6em;
    }
    .saint-content .bio-content,
    .saint-content .saint-chronology {
        font-size: 0.95em;
    }
    .accordion-toggle {
        font-size: 1em;
        padding: 12px 18px;
    }
    .accordion-content {
        padding: 18px;
    }
}