/**
 * Church Community 테마 - 서브페이지 스타일
 */

/* ========================================
   페이지 헤더
======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-nav .current {
    color: #fff;
    font-weight: 500;
}

/* ========================================
   페이지 콘텐츠
======================================== */
.page-content {
    padding: 0 0 60px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.page-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-base);
}

/* 이미지 스타일 */
.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
}

.page-body p {
    margin-bottom: 16px;
}

.page-body p:last-child {
    margin-bottom: 0;
}

/* 테이블 스타일 */
.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-body table th,
.page-body table td {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.page-body table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* 목록 스타일 */
.page-body ul,
.page-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.page-body li {
    margin-bottom: 8px;
}

/* ========================================
   예배안내 (worship)
======================================== */
.worship-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.worship-info h2:first-child {
    margin-top: 0;
}

.worship-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px 0;
}

.worship-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: center;
    font-size: 15px;
}

.worship-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    font-size: 15px;
}

.worship-table tbody tr:hover {
    background: var(--bg-light);
}

/* ========================================
   담임목사 인사말 (intro)
======================================== */
.pastor-greeting {
    text-align: center;
}

.pastor-greeting .greeting-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    font-family: serif;
}

.pastor-greeting .greeting-verse {
    font-size: 15px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 32px;
    line-height: 1.6;
}

.pastor-greeting .pastor-profile {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    text-align: left;
}

.pastor-greeting .pastor-photo {
    flex-shrink: 0;
    width: 300px;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
}

.pastor-greeting .pastor-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    margin-top: 12px;
}

.pastor-greeting .greeting-body {
    text-align: left;
    font-size: 16px;
    line-height: 2;
    color: var(--text-base);
}

.pastor-greeting .greeting-body p {
    margin-bottom: 20px;
    text-indent: 1em;
}

.pastor-greeting .greeting-closing {
    font-size: 22px;
    font-weight: 700;
    color: #c0392b;
    text-align: center;
    margin-top: 32px;
    font-family: serif;
}

@media (max-width: 768px) {
    .pastor-greeting .pastor-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pastor-greeting .pastor-photo {
        width: 240px;
        height: 300px;
    }

    .pastor-greeting .greeting-title {
        font-size: 22px;
    }

    .worship-table thead th,
    .worship-table tbody td {
        padding: 10px 8px;
        font-size: 14px;
    }
}

/* ========================================
   콘텐츠 없음
======================================== */
.no-content {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-content i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-content p {
    font-size: 18px;
    margin: 0;
}

/* ========================================
   사역자 소개 (minister) 카드
======================================== */
.minister-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.minister-card {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.minister-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.minister-photo-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.minister-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    margin: 0;
}

.minister-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 6px 0;
}

.minister-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.minister-cards.cols-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
}

@media (max-width: 768px) {
    .minister-cards.cols-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .minister-cards,
    .minister-cards.cols-4 {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

/* ========================================
   교회비전 (vision)
======================================== */
.vision-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.vision-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
}

.vision-item p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-base);
    padding-left: 20px;
}

/* ========================================
   교회 위치 (address)
======================================== */
.church-location h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 32px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.church-location h2:first-child {
    margin-top: 0;
}

.church-location ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.church-location ul li {
    padding: 8px 0 8px 20px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.church-location ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.church-address {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-heading);
    padding: 16px 0;
}

.church-address i {
    color: var(--primary);
    margin-right: 8px;
}

.map-container {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.map-container iframe {
    display: block;
}

/* ========================================
   목사님 프로필 (pastor, father)
======================================== */
.pastor-profile-page {
    max-width: 700px;
    margin: 0 auto;
}

.profile-card {
    text-align: center;
    margin-bottom: 40px;
}

.profile-card .profile-photo {
    width: 220px;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.profile-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.profile-section {
    margin-bottom: 32px;
}

.profile-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.profile-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-section ul li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-base);
    padding-left: 16px;
    position: relative;
}

.profile-section ul li::before {
    content: '\00B7';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--primary);
}

/* ========================================
   페이지 갤러리 (이미지 그리드)
======================================== */
.page-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.page-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0;
}

@media (max-width: 600px) {
    .page-gallery {
        grid-template-columns: 1fr;
    }

    .page-gallery img {
        height: 200px;
    }
}

/* ========================================
   반응형
======================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
    }

    .page-title {
        font-size: 24px;
    }

    .content-wrapper {
        padding: 24px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .page-body {
        font-size: 15px;
    }

    .page-body img {
        margin: 12px 0;
    }

    .profile-card .profile-photo {
        width: 180px;
        height: 230px;
    }

    .vision-item h3 {
        font-size: 18px;
    }
}
