/* --- 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.6;
    margin: 0;
    padding: 0;
}

/* --- Layout Container --- */
.author-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
     font-family: var(--font-body);
}

/* --- Profile Section --- */
.author-profile-section {
    background-color: var(--color-secondary-accent);
    padding: 3rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.author-avatar-lg img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.author-name-lg {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-accent);
    margin-bottom: 0.2rem;
}

.author-title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-bio {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    color: var(--color-text-dark);
    line-height: 1.7;
}

.author-social-links a {
    color: var(--color-primary-accent);
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.author-social-links a:hover {
    color: var(--color-text-dark);
}

/* Desktop Layout */
@media (min-width: 768px) {
    .author-profile-section {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 3rem;
    }

    .author-avatar-lg {
        flex-shrink: 0;
    }

    .author-info-content {
        flex-grow: 1;
    }

    .author-name-lg, .author-title {
        text-align: left;
    }

    .author-bio {
        margin: 0 0 1.5rem 0;
    }

    .author-social-links {
        text-align: left;
    }
}


/* --- Posts Section --- */
.section-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary-accent);
    font-size: 2rem;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Post Card Style (Simplified version of the Specials card) */
.post-card {
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none; /* Make the whole card clickable */
    display: block;
}

.post-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-accent);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
}

/* --- 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; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }
.scroll-animate.delay-5 { transition-delay: 0.5s; }