/* =============================================================================
   교회 소개 페이지 스타일시트
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. RESET & VARIABLES
   ----------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #3498db;
    --bg-color: #f5f6fa;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --border-color: #eee;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   2. HEADER
   ----------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-btn {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 8px;
    margin-right: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.1);
}

.header h1 {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
}

.home-btn {
    color: white;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-btn:hover {
    background: rgba(255,255,255,0.1);
}

.home-btn svg {
    width: 22px;
    height: 22px;
}

/* -----------------------------------------------------------------------------
   3. MAIN CONTENT
   ----------------------------------------------------------------------------- */
.main-content {
    margin-top: 60px;
    padding-bottom: 40px;
}

/* -----------------------------------------------------------------------------
   4. HERO SECTION
   ----------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.hero p {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   5. SECTIONS
   ----------------------------------------------------------------------------- */
.section {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section h3 svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

/* -----------------------------------------------------------------------------
   6. VISION SECTION
   ----------------------------------------------------------------------------- */
.vision-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    white-space: pre-wrap;
    line-height: 1.8;
}

/* -----------------------------------------------------------------------------
   7. PASTOR SECTION
   ----------------------------------------------------------------------------- */
.pastor-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pastor-photo {
    width: 120px;
    min-height: 120px;
    border-radius: 12px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.pastor-photo span {
    font-size: 3rem;
    color: #ccc;
}

.pastor-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.pastor-info {
    flex: 1;
}

.pastor-info h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.pastor-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: keep-all;
}

/* -----------------------------------------------------------------------------
   8. SERVICE TIMES SECTION
   ----------------------------------------------------------------------------- */
.service-section {
    max-width: 600px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-item .name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.service-item .time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-item .details {
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
}

.service-item .day {
    font-size: 0.75rem;
    color: #999;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #888;
    grid-column: 1 / -1;
}

/* -----------------------------------------------------------------------------
   9. DIRECTIONS SECTION
   ----------------------------------------------------------------------------- */
.directions-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.directions-address {
    margin-bottom: 16px;
}

.directions-address > div:first-child {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.directions-address .detail {
    font-size: 0.9rem;
    color: #666;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.map-btn:hover {
    background: var(--secondary-color);
}

.map-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* -----------------------------------------------------------------------------
   10. FIRST VISIT & PARKING SECTIONS
   ----------------------------------------------------------------------------- */
.first-visit-content,
.parking-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    white-space: pre-wrap;
    line-height: 1.8;
}

/* -----------------------------------------------------------------------------
   11. CTA SECTION
   ----------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 20px;
}

.cta-section h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-btn.primary {
    background: white;
    color: var(--primary-color);
}

.cta-btn.primary:hover {
    background: #f0f0f0;
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* -----------------------------------------------------------------------------
   12. RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .hero {
        padding: 40px 16px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 24px 16px;
    }

    /* 담임목사 소개 - 모바일 */
    .pastor-card {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .pastor-photo {
        width: 100px;
        min-height: auto;
        margin-bottom: 4px;
    }

    .pastor-info {
        width: 100%;
    }

    .pastor-info h4 {
        text-align: center;
        margin-bottom: 12px;
    }

    .pastor-info p {
        text-align: left;
        line-height: 1.8;
    }

    /* 예배 안내 - 모바일 (2열 그리드 유지) */
    .service-section {
        max-width: 100%;
    }

    .service-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-item {
        padding: 12px 14px;
    }

    .service-item .name {
        font-size: 0.9rem;
    }

    .service-item .time {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 200px;
        text-align: center;
    }
}
