/* --- ACF-Friendly Variables & Base Styles --- */
:root {
    /* Colors */
    --color-primary-accent: #7B2F18; /* Dark Brown/Maroon - Text/Buttons/Links */
    --color-secondary-accent: #FCE6C8; /* Pale Peach/Cream - BG/Hover/Accents */
    --color-white: #ffffff;
    --color-text-dark: #333333;
    --color-text-light: #555555;
    --color-border-light: rgba(123, 47, 24, 0.1);
    
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

/* --- Layout Container --- */
.blog-main-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.post-article {
    max-width: 800px; /* Optimal width for reading long-form content */
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Typography & Headers --- */
.post-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary-accent);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-accent);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.post-content h2 {
    font-size: 2rem;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-border-light);
}

.post-content h3 {
    font-size: 1.5rem;
}

/* Post Meta (Date & Author) */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-secondary-accent);
    margin-bottom: 3rem;
}

.meta-item i {
    color: var(--color-primary-accent);
    margin-right: 5px;
}

.author-link {
    color: var(--color-primary-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.author-link:hover {
    color: #923d24; /* Slightly lighter shade for hover */
}

/* Post Content Styling */
.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.post-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.post-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.8rem;
}

.post-list li::before {
    content: "\f00c"; /* Font Awesome check mark */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-primary-accent);
}

.post-quote {
    border-left: 4px solid var(--color-primary-accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--color-secondary-accent);
    font-style: italic;
    color: var(--color-text-dark);
    border-radius: 0 8px 8px 0;
}

/* --- AUTHOR BOX STYLING --- */
.author-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem;
    margin-top: 4rem;
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    background-color: var(--color-secondary-accent);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary-accent);
    margin: 0 0 0.5rem 0;
}

.author-bio {
    color: var(--color-text-dark);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.author-social-links a {
    color: var(--color-primary-accent);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.author-social-links a:hover {
    color: var(--color-text-dark);
}

.all-posts-link {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: var(--color-primary-accent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.all-posts-link i {
    margin-right: 5px;
}

.all-posts-link:hover {
    background-color: #923d24;
    transform: translateY(-1px);
}


/* --- RESPONSIVENESS: Desktop Layout for Author Box --- */
@media (min-width: 650px) {
    .author-box {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .author-avatar {
        flex-shrink: 0;
    }
    
    .author-avatar img {
        margin-bottom: 0;
    }

    .author-info {
        flex-grow: 1;
    }
    
    .author-name {
        margin-top: 0;
    }
    
    .author-social-links {
        text-align: left;
        margin-bottom: 1rem;
    }
}

/* --- Scroll Animation Effects --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }