/*
 * sermon_layout.css
 * Dedicated styles for individual sermon pages (e.g., sermon_forgiveness.html).
 * Focuses on readability and clear content hierarchy.
 */

/* --- 1. Root Variables and Global Resets --- */
:root {
    --primary-color: #006400;     /* Deep Forest Green */
    --secondary-color: #6AA84F;   /* Vibrant Lime Green/Accent */
    --accent-color: #66CCCC;      /* Soft Teal/Mint */
    --background-light: #F8F9FA;  /* Light gray background for sections */
    --background-card: #FFFFFF;   /* White background for main content */
    --text-dark: #333333;
    --text-heading: #1a1a1a;
    --text-light: #FFFFFF;
    --font-serif: 'Georgia', serif; /* Serif for main reading */
    --font-sans: 'Helvetica Neue', Arial, sans-serif; /* Sans-serif for titles/navigation */
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-serif);
    line-height: 1.7; /* Increased line height for excellent readability */
    color: var(--text-dark);
    background-color: var(--background-light);
}

h1, h2, h3, h4 {
    margin-bottom: 0.6em;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    font-family: var(--font-sans); 
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

p {
    margin-bottom: 1.5em;
}

ul {
    margin: 0 0 1.5em 20px;
}

/* --- 2. Header and Navigation --- */

.sermon-page-header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-subtle);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.sermon-page-header .logo h1 {
    color: var(--text-light);
    font-size: 1.4em;
    margin: 0;
}

.sermon-nav a {
    color: var(--text-light);
    padding: 8px 15px;
    border: 1px solid var(--text-light);
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.sermon-nav a:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

/* --- 3. Hero and Metadata --- */

.sermon-hero {
    background-color: var(--background-card);
    padding: 40px 5% 30px;
    border-bottom: 3px solid var(--secondary-color);
}

.sermon-meta {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sermon-title {
    font-size: 2.8em;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.scripture-reference {
    font-size: 1.4em;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.speaker-info, .category-tag {
    font-size: 1em;
    color: #666;
    margin: 5px 0;
    display: inline-block;
    padding: 0 15px;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 5%;
    max-width: 800px;
}

/* --- 4. Main Sermon Content Body --- */

.sermon-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 5%;
    background-color: var(--background-card);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.sermon-section {
    padding: 30px 0;
    border-bottom: 1px dashed #eee;
}

.sermon-section:last-child {
    border-bottom: none;
}

.sermon-section h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1em;
}

.sermon-section h4 {
    font-size: 1.3em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--secondary-color);
}

/* Style for Blockquotes (Key Quotes) */
blockquote {
    border-left: 5px solid var(--accent-color);
    padding: 15px 20px;
    margin: 2em 0;
    background-color: var(--background-light);
    font-style: italic;
    font-size: 1.1em;
    color: #555;
    border-radius: 4px;
}

.scripture-focus {
    border-left: 5px solid var(--secondary-color);
    font-weight: bold;
    color: var(--text-dark);
}

/* List Styling (for point outlines) */
.sermon-section ul {
    list-style-type: disc;
    padding-left: 25px;
}

.sermon-section ul li {
    margin-bottom: 0.5em;
}

/* --- 5. Conclusion and CTA --- */

.closing-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-size: 0.9em;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* --- 6. Footer --- */

footer {
    text-align: center;
    padding: 30px 5%;
    border-top: 1px solid #ccc;
    background-color: var(--background-light); 
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

footer p {
    margin: 5px 0;
}

/* --- 7. Mobile Adjustments --- */
@media (max-width: 600px) {
    .sermon-title {
        font-size: 2em;
    }
    
    .scripture-reference {
        font-size: 1.2em;
    }
    
    .sermon-section h3 {
        font-size: 1.5em;
    }

    .closing-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}