<?php
// Ephesians Bible Study – Sit, Walk, Stand

$ephesiansBibleStudy = [
    "title" => "Bible Study on Ephesians – Sit, Walk, Stand",
    
    "background_context" => [
        "author" => "Paul the Apostle",
        "recipients" => "Church in Ephesus and surrounding regions",
        "purpose" => [
            "Encourage believers in their spiritual identity and unity in Christ",
            "Teach how to live out faith practically while standing firm against spiritual opposition"
        ],
        "key_theme" => "Spiritual position → practical conduct → spiritual resistance",
        "discussion_starter" => "How does understanding your “position in Christ” change how you live day to day?"
    ],
    
    "structure_main_points" => [
        [
            "section" => "Sit – Our Position in Christ",
            "passages" => "Ephesians 1:3–14; 2:1–10",
            "summary" => "Believers are seated with Christ in heavenly places. Salvation is by grace through faith; we are spiritually secure.",
            "key_verses" => [
                "Ephesians 2:6 – 'And God raised us up with Christ and seated us with him in the heavenly realms in Christ Jesus.'",
                "Ephesians 1:3 – 'Praise be to the God and Father of our Lord Jesus Christ, who has blessed us in the heavenly realms with every spiritual blessing in Christ.'"
            ],
            "discussion" => "What does it mean to be “seated with Christ”? How does that affect your identity and confidence?"
        ],
        [
            "section" => "Walk – Our Daily Conduct",
            "passages" => "Ephesians 4:1–5:21",
            "summary" => "Living out our position in Christ through humility, love, and unity. Putting off the old self and putting on the new self.",
            "key_verses" => [
                "Ephesians 4:1 – 'I urge you to live a life worthy of the calling you have received.'",
                "Ephesians 5:1–2 – 'Follow God’s example, therefore, as dearly loved children and walk in the way of love, just as Christ loved us and gave himself up for us…'"
            ],
            "discussion" => "What practical habits or attitudes show that you are “walking in Christ”?"
        ],
        [
            "section" => "Stand – Spiritual Warfare",
            "passages" => "Ephesians 6:10–20",
            "summary" => "Believers are called to stand firm against spiritual opposition. The armor of God equips us to resist the devil’s schemes.",
            "key_verses" => [
                "Ephesians 6:11 – 'Put on the full armor of God, so that you can take your stand against the devil’s schemes.'",
                "Ephesians 6:13 – 'Therefore put on the full armor of God, so that when the day of evil comes, you may be able to stand your ground…'"
            ],
            "discussion" => "How do you practically “stand” in your faith when challenges arise?"
        ]
    ],
    
    "key_themes" => [
        "Position in Christ (Sit)" => "Our authority, blessing, and security are spiritual realities",
        "Practical Conduct (Walk)" => "Faith must translate into daily living and relationships",
        "Spiritual Resistance (Stand)" => "We are in a battle and must rely on God’s power and armor"
    ],
    
    "practical_application" => [
        "Reflect on your spiritual position: do you truly live as seated with Christ?",
        "Identify areas in your walk where your actions don’t match your position in Christ",
        "Practice using the armor of God daily: truth, righteousness, faith, salvation, Word, and prayer",
        "Encourage others to walk in unity and love, modeling the 'walk' in community"
    ],
    
    "group_discussion_questions" => [
        "How does knowing you are seated with Christ influence your confidence and decision-making?",
        "What 'old habits' do you need to put off to walk in the new self?",
        "How do you currently equip yourself for spiritual warfare? What could be improved?",
        "Which part of the armor of God do you rely on most? Least?",
        "How do the 'sit, walk, stand' stages connect? How do they flow into one another in daily life?"
    ]
];

?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo $ephesiansBibleStudy['title']; ?></title>
    <style>
        body { font-family: Arial, sans-serif; line-height: 1.6; margin: 20px; max-width: 900px; }
        h1, h2, h3 { color: #2c3e50; }
        ul { margin-bottom: 20px; }
        li { margin-bottom: 10px; }
        .section { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #ccc; }
        .key-verse { font-style: italic; color: #34495e; }
    </style>
</head>
<body>

<h1><?php echo $ephesiansBibleStudy['title']; ?></h1>

<h2>1. Background & Context</h2>
<p><strong>Author:</strong> <?php echo $ephesiansBibleStudy['background_context']['author']; ?></p>
<p><strong>Recipients:</strong> <?php echo $ephesiansBibleStudy['background_context']['recipients']; ?></p>
<p><strong>Purpose:</strong></p>
<ul>
    <?php foreach ($ephesiansBibleStudy['background_context']['purpose'] as $purpose) {
        echo "<li>$purpose</li>";
    } ?>
</ul>
<p><strong>Key Theme:</strong> <?php echo $ephesiansBibleStudy['background_context']['key_theme']; ?></p>
<p><strong>Discussion Starter:</strong> <?php echo $ephesiansBibleStudy['background_context']['discussion_starter']; ?></p>

<h2>2. Structure: Sit, Walk, Stand</h2>
<?php foreach ($ephesiansBibleStudy['structure_main_points'] as $point) { ?>
    <div class="section">
        <h3><?php echo $point['section']; ?> (<?php echo $point['passages']; ?>)</h3>
        <p><?php echo $point['summary']; ?></p>
        <p class="key-verse"><strong>Key Verses:</strong></p>
        <ul>
        <?php foreach ($point['key_verses'] as $verse) {
            echo "<li>$verse</li>";
        } ?>
        </ul>
        <p><strong>Discussion:</strong> <?php echo $point['discussion']; ?></p>
    </div>
<?php } ?>

<h2>3. Key Themes</h2>
<ul>
<?php foreach ($ephesiansBibleStudy['key_themes'] as $theme => $description) {
    echo "<li><strong>$theme:</strong> $description</li>";
} ?>
</ul>

<h2>4. Practical Application</h2>
<ul>
<?php foreach ($ephesiansBibleStudy['practical_application'] as $action) {
    echo "<li>$action</li>";
} ?>
</ul>

<h2>5. Group Discussion Questions</h2>
<ul>
<?php foreach ($ephesiansBibleStudy['group_discussion_questions'] as $question) {
    echo "<li>$question</li>";
} ?>
</ul>

</body>
</html>
