/* ==========================================================================
   Sangjo-Bugo Theme - Funeral Process Guide Page
   7-step timeline with cards
   ========================================================================== */

/* ==========================================================================
   1. Intro
   ========================================================================== */
.guide-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.guide-intro p {
    font-size: 1rem;
    color: var(--color-gray-700);
    line-height: 1.8;
}

/* ==========================================================================
   2. Timeline Container
   ========================================================================== */
.guide-timeline {
    max-width: 740px;
    margin: 0 auto;
    position: relative;
}

/* ==========================================================================
   3. Each Step
   ========================================================================== */
.guide-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2.5rem;
}

.guide-step:last-child {
    padding-bottom: 0;
}

.guide-step:last-child .guide-step-line {
    display: none;
}

/* ==========================================================================
   4. Step Marker (Number + Line)
   ========================================================================== */
.guide-step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
}

.guide-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-black);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.guide-step-line {
    width: 2px;
    flex: 1;
    background-color: var(--color-gray-200);
    margin-top: 0.5rem;
}

/* ==========================================================================
   5. Step Content Card
   ========================================================================== */
.guide-step-content {
    flex: 1;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.guide-step-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.guide-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.guide-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--color-accent);
}

.guide-step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.125rem;
}

.guide-step-subtitle {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* ==========================================================================
   6. Step List Items
   ========================================================================== */
.guide-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-step-list li {
    position: relative;
    padding-left: 1.25rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.9375rem;
    color: var(--color-gray-700);
    line-height: 1.65;
}

.guide-step-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-gray-300);
}

.guide-step-list li + li {
    border-top: 1px solid var(--color-gray-100);
}

.guide-step-list li strong {
    color: var(--color-gray-900);
}

/* ==========================================================================
   7. CTA Section
   ========================================================================== */
.guide-cta {
    max-width: 740px;
    margin: 3rem auto 0;
}

.guide-cta-card {
    text-align: center;
    background-color: var(--color-gray-100);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}

.guide-cta-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.guide-cta-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.guide-cta-card p {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    margin-bottom: 1.5rem;
}

.guide-cta-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

/* Fold/Flip (~359px) */
@media (max-width: 359px) {
    .guide-step {
        gap: 0.75rem;
    }

    .guide-step-marker {
        width: 36px;
    }

    .guide-step-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .guide-step-content {
        padding: 1rem;
    }

    .guide-step-title {
        font-size: 1.0625rem;
    }

    .guide-step-list li {
        font-size: 0.8125rem;
    }

    .guide-cta-card {
        padding: 1.5rem 1rem;
    }

    .guide-cta-actions {
        flex-direction: column;
    }
}

/* Mobile (360px~767px) */
@media (min-width: 360px) and (max-width: 767px) {
    .guide-step {
        gap: 1rem;
    }

    .guide-step-marker {
        width: 40px;
    }

    .guide-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .guide-step-content {
        padding: 1.25rem;
    }

    .guide-step-title {
        font-size: 1.125rem;
    }

    .guide-step-list li {
        font-size: 0.875rem;
    }
}

/* Tablet Portrait (768px~1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .guide-step-content {
        padding: 1.5rem;
    }
}
