/* Life of Bryn Custom Styles */

/* Define CSS Variables */
:root {
    --primary-green: #6B8E6B;
    --soft-sage: #8FA68E;
    --accent-coral: #E4B4A6;
    --light-beige: #FAF8F3;
    --warm-beige: #F5E6D3;
    --text-dark: #333333;
    --text-light: #666666;
}

/* Hide any Astra parent theme site title/description when custom logo is used */
.has-custom-logo .ast-site-identity .ast-site-title,
.has-custom-logo .ast-site-identity .ast-site-description,
.has-custom-logo .site-header .ast-site-title-wrap,
.has-custom-logo .site-header-primary-section .ast-site-title,
.has-custom-logo .ast-logo-title-inline .ast-site-title-wrap {
    display: none !important;
    visibility: hidden !important;
}

/* Override Astra Blue Colors Globally - but not titles */
body .entry-content a,
body .comment-reply-link,
body .read-more,
body .ast-blog-featured-section .posted-on a:hover,
body .ast-blog-featured-section .posted-on a:focus {
    color: var(--primary-green) !important;
}

/* Keep post titles dark */
body .entry-title a,
body h1 a,
body h2 a,
body h3 a,
body h4 a,
body h5 a,
body h6 a {
    color: var(--text-dark) !important;
}

body .entry-title a:hover,
body h1 a:hover,
body h2 a:hover,
body h3 a:hover,
body h4 a:hover,
body h5 a:hover,
body h6 a:hover {
    color: var(--primary-green) !important;
}

body a:hover,
body a:focus,
body .ast-button:hover,
body .button:hover,
body input[type="submit"]:hover,
body input[type="button"]:hover,
body button:hover,
body .wp-block-button__link:hover,
body .comment-reply-link:hover {
    color: var(--soft-sage) !important;
}

/* Override button backgrounds */
body .ast-button,
body .button,
body input[type="submit"],
body input[type="button"],
body button.submit,
body .wp-block-button__link,
body .ast-custom-button,
body .comment-form button[type="submit"],
body .comment-form input[type="submit"] {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: white !important;
}

body .ast-button:hover,
body .button:hover,
body input[type="submit"]:hover,
body input[type="button"]:hover,
body button.submit:hover,
body .wp-block-button__link:hover,
body .comment-form button[type="submit"]:hover,
body .comment-form input[type="submit"]:hover {
    background-color: var(--soft-sage) !important;
    border-color: var(--soft-sage) !important;
    color: white !important;
}

/* Fix ALL button text visibility with maximum specificity */
body .entry-content button,
body .entry-content .button,
body .entry-content .wp-block-button__link,
body .entry-content input[type="submit"],
body .entry-content input[type="button"],
body .entry-content a.button,
body .entry-content .wp-block-button a,
body .entry-content .wp-block-button span,
body article button,
body article .button,
body article a.button {
    color: white !important;
    text-decoration: none !important;
}

/* Ensure button text stays white on hover */
body .entry-content button:hover,
body .entry-content .button:hover,
body .entry-content .wp-block-button__link:hover,
body .entry-content input[type="submit"]:hover,
body .entry-content input[type="button"]:hover,
body .entry-content a.button:hover,
body .entry-content .wp-block-button a:hover,
body article button:hover,
body article .button:hover,
body article a.button:hover {
    color: white !important;
}

/* Force white text on ALL green backgrounds */
body *[style*="background-color: #6b8e23"],
body *[style*="background-color: rgb(107, 142, 35)"],
body *[style*="background-color:#6b8e23"],
body *[style*="background-color:rgb(107, 142, 35)"] {
    color: white !important;
}

/* Override form focus colors */
body input:focus,
body textarea:focus,
body select:focus {
    border-color: var(--primary-green) !important;
    outline-color: var(--primary-green) !important;
}

/* Override Astra link underlines */
body .entry-content a {
    text-decoration-color: var(--primary-green) !important;
}

/* Hide all comment-related elements */
body .comments-area,
body #comments,
body .comment-respond,
body .comment-reply-title,
body .comment-form,
body .comment-list,
body .comments-title,
body .comment-navigation,
body .comment-metadata,
body .comment-notes,
body .ast-comment-list,
body .ast-comment-meta,
body .comments-link,
body .comment-reply-link,
body .comment-edit-link {
    display: none !important;
}



/* Complete Blog Post Header Restyle */
body.single-post .site-content {
    padding-top: 0 !important;
}

body.single-post .content-area {
    padding-top: 0 !important;
}

/* Hide Astra's title bar and banner areas on single posts */
body.single-post .ast-single-post-banner,
body.single-post .ast-title-bar,
body.single-post .ast-header-without-markup,
body.single-post .ast-archive-description,
body.single-post .ast-single-post-header {
    display: none !important;
}

/* Remove any top margin/padding from Astra containers */
body.single-post .ast-container:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force proper alignment */
body.single-post .ast-single-post-order {
    display: block !important;
    width: 100% !important;
}

body.single-post article.post {
    width: 100% !important;
    max-width: none !important;
}

/* Center and style the post title */
body.single-post .entry-header {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto 40px !important;
    padding: 0 20px !important;
}

body.single-post .entry-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 3rem !important;
    line-height: 1.2 !important;
    color: var(--text-dark) !important;
    margin: 0 0 20px 0 !important;
    text-align: center !important;
}

/* Completely rebuild the meta section */
body.single-post .ast-blog-single-element.ast-blog-meta-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    margin-bottom: 30px !important;
    font-size: 0.95rem !important;
}

/* Hide the duplicate "By" */
body.single-post .posted-by .author-name::before {
    content: "" !important;
}

/* Style author */
body.single-post .posted-by {
    color: var(--text-light) !important;
}

body.single-post .posted-by a,
body.single-post .author-name a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

body.single-post .posted-by a:hover {
    color: var(--primary-green) !important;
}

/* Hide blue links */
body.single-post .ast-blog-meta-container a {
    color: var(--text-dark) !important;
}

/* Style date */
body.single-post .posted-on {
    color: var(--text-light) !important;
    font-style: italic !important;
}

/* Style separators */
body.single-post .ast-blog-meta-separator {
    color: var(--text-light) !important;
    margin: 0 10px !important;
    font-weight: 300 !important;
}

/* Add a nice divider after meta */
body.single-post .entry-header::after {
    content: "" !important;
    display: block !important;
    width: 80px !important;
    height: 3px !important;
    background: var(--primary-green) !important;
    margin: 30px auto !important;
}

/* Style categories if they appear */
body.single-post .ast-terms-link,
body.single-post .cat-links {
    display: block !important;
    margin-top: 15px !important;
}

body.single-post .ast-terms-link a,
body.single-post .cat-links a {
    background: var(--accent-coral) !important;
    color: white !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
}

body.single-post .ast-terms-link a:hover,
body.single-post .cat-links a:hover {
    background: var(--primary-green) !important;
    transform: translateY(-2px) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body.single-post .entry-title {
        font-size: 2rem !important;
    }
    
    body.single-post .ast-blog-single-element.ast-blog-meta-container {
        font-size: 0.85rem !important;
    }
}

/* Override Astra Container Width */
body .ast-container {
    max-width: 1200px !important;
}

/* Remove Astra's default padding */
body .site-content {
    padding: 0 !important;
}

body .site-content .content-area {
    padding: 0 !important;
}

/* Hero gradient fallback */
body .lob-hero-gradient {
    background: linear-gradient(135deg, var(--soft-sage) 0%, var(--warm-beige) 100%) !important;
}

/* Force our typography */
body,
body .site,
body .site-content {
    font-family: 'Lato', sans-serif !important;
    color: var(--text-dark) !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .entry-title,
body .page-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 400 !important;
    color: var(--text-dark) !important;
}

/* Homepage Specific Styles */
body .homepage-hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--warm-beige) 100%) !important;
    padding: 120px 0 !important;
    text-align: center !important;
    margin-bottom: 0 !important;
}

body .hero-headline {
    font-family: 'Playfair Display', serif !important;
    font-size: 3.5rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.02em !important;
}

body .hero-tagline {
    font-size: 1.5rem !important;
    color: var(--text-light) !important;
    font-weight: 300 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

body .section-header {
    text-align: center !important;
    margin-bottom: 40px !important;
}

body .section-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.5rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 20px !important;
}

body .section-divider {
    width: 80px !important;
    height: 3px !important;
    background: var(--primary-green) !important;
    margin: 0 auto !important;
}

body .homepage-posts {
    margin-bottom: 100px !important;
}

body .view-all-wrapper {
    text-align: center !important;
    margin-top: 60px !important;
}

body .view-all-link {
    display: inline-block !important;
    padding: 15px 40px !important;
    background: var(--primary-green) !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

body .view-all-link:hover {
    background: var(--soft-sage) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

body .homepage-welcome {
    background: var(--white) !important;
    padding: 60px 0 !important;
    margin-bottom: 0 !important;
}

body .welcome-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 80px !important;
    align-items: center !important;
}

body .welcome-text h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.5rem !important;
    margin-bottom: 30px !important;
    color: var(--text-dark) !important;
}

body .welcome-text p {
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    color: var(--text-light) !important;
    margin-bottom: 25px !important;
}

body .learn-more-link {
    display: inline-block !important;
    color: var(--primary-green) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    transition: all 0.3s ease !important;
}

body .learn-more-link:hover {
    color: var(--soft-sage) !important;
}

body .welcome-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    object-fit: cover !important;
}

body .welcome-image-placeholder {
    width: 100% !important;
    height: 400px !important;
    background: var(--warm-beige) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px dashed var(--primary-green) !important;
}

body .welcome-image-placeholder p {
    color: var(--text-light) !important;
    font-style: italic !important;
}

body .homepage-newsletter {
    background: var(--light-gray) !important;
    padding: 60px 0 !important;
}

body .newsletter-box {
    max-width: 600px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

body .newsletter-box h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
    margin-bottom: 20px !important;
}

body .newsletter-box p {
    color: var(--text-light) !important;
    margin-bottom: 40px !important;
}

body .newsletter-form {
    display: flex !important;
    gap: 15px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

body .newsletter-form input {
    flex: 1 !important;
    padding: 15px 20px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
}

body .newsletter-form button {
    padding: 15px 30px !important;
    background: var(--primary-green) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body .newsletter-form button:hover {
    background: var(--soft-sage) !important;
}

/* About Page Styles */
body .about-content {
    padding: 80px 0 !important;
}

body .about-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: 60px !important;
    align-items: start !important;
}

body .about-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    object-fit: cover !important;
}

body .about-image-placeholder {
    width: 100% !important;
    height: 400px !important;
    background: var(--warm-beige) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px dashed var(--primary-green) !important;
}

body .about-image-placeholder p {
    color: var(--text-light) !important;
    font-style: italic !important;
}

body .about-text h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.5rem !important;
    margin-bottom: 30px !important;
    color: var(--text-dark) !important;
}

body .about-text p {
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    margin-bottom: 25px !important;
    color: var(--text-light) !important;
}

body .about-list {
    margin: 30px 0 !important;
    padding-left: 20px !important;
}

body .about-list li {
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
    color: var(--text-light) !important;
    list-style: none !important;
    position: relative !important;
    padding-left: 30px !important;
}

body .about-list li::before {
    content: "🌿" !important;
    position: absolute !important;
    left: 0 !important;
}

body .signature {
    margin-top: 40px !important;
    font-style: italic !important;
}

body .signature strong {
    font-size: 1.5rem !important;
    color: var(--primary-green) !important;
    font-family: 'Playfair Display', serif !important;
}

body .about-cta {
    background: var(--light-gray) !important;
    padding: 80px 0 !important;
}

body .cta-box {
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

body .cta-box h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
    margin-bottom: 20px !important;
}

body .cta-box p {
    font-size: 1.125rem !important;
    color: var(--text-light) !important;
    margin-bottom: 30px !important;
}

body .cta-button {
    display: inline-block !important;
    padding: 15px 40px !important;
    background: var(--primary-green) !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

body .cta-button:hover {
    background: var(--soft-sage) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* Contact Page Styles */
body .contact-content {
    padding: 80px 0 !important;
}

body .contact-wrapper {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 60px !important;
    align-items: start !important;
}

body .contact-form-section h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
    margin-bottom: 20px !important;
    color: var(--text-dark) !important;
}

body .contact-form-section p {
    color: var(--text-light) !important;
    margin-bottom: 40px !important;
    line-height: 1.8 !important;
}

body .contact-form {
    background: var(--light-gray) !important;
    padding: 40px !important;
    border-radius: 8px !important;
}

body .form-group {
    margin-bottom: 25px !important;
}

body .form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
}

body .form-group input,
body .form-group textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: border-color 0.3s ease !important;
}

body .form-group input:focus,
body .form-group textarea:focus {
    outline: none !important;
    border-color: var(--primary-green) !important;
}

body .submit-button {
    background: var(--primary-green) !important;
    color: white !important;
    padding: 15px 40px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body .submit-button:hover {
    background: var(--soft-sage) !important;
    transform: translateY(-2px) !important;
}

/* Responsive Styles */
@media (max-width: 968px) {
    body .hero-headline {
        font-size: 2.5rem !important;
    }
    
    body .hero-tagline {
        font-size: 1.25rem !important;
    }
    
    body .welcome-content {
        grid-template-columns: 1fr !important;
    }
    
    body .welcome-image {
        order: -1 !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
    
    body .about-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    body .about-image {
        max-width: 400px !important;
        margin: 0 auto !important;
    }
    
    body .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }
    
    body .contact-info-section {
        order: -1 !important;
    }
}

@media (max-width: 600px) {
    body .homepage-hero {
        padding: 80px 20px !important;
    }
    
    body .newsletter-form {
        flex-direction: column !important;
    }
    
    body .newsletter-form button {
        width: 100% !important;
    }
    
    body .contact-form {
        padding: 30px 20px !important;
    }
}

/* FAQ Section */
body .contact-faq {
    background: var(--warm-beige) !important;
    padding: 80px 0 !important;
}

body .faq-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.5rem !important;
    text-align: center !important;
    margin-bottom: 60px !important;
    color: var(--text-dark) !important;
}

body .faq-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

body .faq-item {
    background: var(--white) !important;
    padding: 30px !important;
    border-radius: 8px !important;
}

body .faq-item h4 {
    font-size: 1.25rem !important;
    margin-bottom: 15px !important;
    color: var(--text-dark) !important;
}

body .faq-item p {
    color: var(--text-light) !important;
    line-height: 1.6 !important;
}

/* Additional contact page styles */
body .contact-info-section h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.75rem !important;
    margin-bottom: 20px !important;
    color: var(--text-dark) !important;
}

body .contact-info-section > p {
    color: var(--text-light) !important;
    margin-bottom: 40px !important;
    line-height: 1.8 !important;
}

body .contact-info-box {
    background: var(--white) !important;
    padding: 30px !important;
    border-radius: 8px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

body .contact-info-box h4 {
    font-size: 1.25rem !important;
    margin-bottom: 15px !important;
    color: var(--primary-green) !important;
}

body .contact-info-box p {
    color: var(--text-light) !important;
    line-height: 1.6 !important;
}

body .contact-info-box a {
    color: var(--primary-green) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

body .social-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

body .social-links a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

body .social-links a:hover {
    color: var(--primary-green) !important;
}

body .newsletter-link {
    display: inline-block !important;
    margin-top: 15px !important;
    color: var(--primary-green) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

@media (max-width: 968px) {
    body .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Blog Post Image Styles */
body .entry-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 30px auto !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

/* Centered images */
body .entry-content .aligncenter,
body .entry-content img.aligncenter {
    display: block !important;
    margin: 40px auto !important;
    max-width: 800px !important;
}

/* Full width images */
body .entry-content .alignfull,
body .entry-content img.alignfull {
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: 100vw !important;
}

/* Wide images */
body .entry-content .alignwide,
body .entry-content img.alignwide {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Left aligned images */
body .entry-content .alignleft,
body .entry-content img.alignleft {
    float: left !important;
    margin: 0 30px 30px 0 !important;
    max-width: 400px !important;
}

/* Right aligned images */
body .entry-content .alignright,
body .entry-content img.alignright {
    float: right !important;
    margin: 0 0 30px 30px !important;
    max-width: 400px !important;
}

/* WordPress caption styling */
body .entry-content .wp-caption {
    max-width: 100% !important;
    margin: 30px auto !important;
}

body .entry-content .wp-caption-text {
    text-align: center !important;
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    margin-top: 10px !important;
    font-style: italic !important;
}

/* Image container for better spacing */
body .entry-content p img {
    margin: 40px auto !important;
}

/* Gallery styling */
body .entry-content .gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    margin: 40px 0 !important;
}

body .entry-content .gallery img {
    margin: 0 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
}

/* Responsive images */
@media (max-width: 768px) {
    body .entry-content .alignleft,
    body .entry-content .alignright,
    body .entry-content img.alignleft,
    body .entry-content img.alignright {
        float: none !important;
        margin: 30px auto !important;
        max-width: 100% !important;
    }
}

/* Custom Image Shortcode Styles - Updated */
body .lob-image-wrapper {
    margin: 40px auto !important;
    display: block !important;
    width: 100% !important;
}

body .lob-image-wrapper figure {
    margin: 0 !important;
    padding: 0 !important;
}

body .lob-image-wrapper img,
body .lob-styled-img {
    border-radius: 8px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Image sizes with wrapper control */
body .lob-img-small {
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .lob-img-small img {
    max-width: 400px !important;
}

body .lob-img-medium {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .lob-img-medium img {
    max-width: 600px !important;
}

body .lob-img-large {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .lob-img-large img {
    max-width: 900px !important;
}

body .lob-img-full {
    max-width: 100% !important;
}

body .lob-img-full img {
    max-width: 100% !important;
}

/* Image alignment overrides */
body .lob-img-left {
    margin-left: 0 !important;
    margin-right: auto !important;
}

body .lob-img-left figure {
    text-align: left !important;
}

body .lob-img-center {
    margin-left: auto !important;
    margin-right: auto !important;
}

body .lob-img-center figure {
    text-align: center !important;
}

body .lob-img-right {
    margin-right: 0 !important;
    margin-left: auto !important;
}

body .lob-img-right figure {
    text-align: right !important;
}

body .lob-caption {
    margin-top: 15px !important;
    font-style: italic !important;
    color: var(--text-light) !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    display: block !important;
}

/* Highlight Text Styles */
body .lob-highlight {
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-weight: 500 !important;
}

body .lob-highlight-yellow {
    background: #fff3cd !important;
    color: #856404 !important;
}

body .lob-highlight-green {
    background: #d4edda !important;
    color: #155724 !important;
}

body .lob-highlight-pink {
    background: #f8d7da !important;
    color: #721c24 !important;
}

body .lob-highlight-blue {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
}

/* Pull Quote Styles */
body .lob-pullquote {
    font-size: 1.75rem !important;
    font-family: 'Playfair Display', serif !important;
    color: var(--primary-green) !important;
    line-height: 1.4 !important;
    padding: 40px 20px !important;
    margin: 40px 0 !important;
    position: relative !important;
}

body .lob-pullquote::before {
    content: '"' !important;
    font-size: 4rem !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    opacity: 0.3 !important;
}

body .lob-pullquote-left {
    text-align: left !important;
    border-left: 4px solid var(--primary-green) !important;
}

body .lob-pullquote-center {
    text-align: center !important;
    border-top: 2px solid var(--primary-green) !important;
    border-bottom: 2px solid var(--primary-green) !important;
}

body .lob-pullquote-right {
    text-align: right !important;
    border-right: 4px solid var(--primary-green) !important;
}

/* FAQ Accordion Styles */
body .lob-faq {
    background: var(--light-gray) !important;
    margin: 20px 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

body .lob-faq-question {
    padding: 20px !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: background 0.3s !important;
}

body .lob-faq-question:hover {
    background: var(--warm-beige) !important;
}

body .lob-faq-icon {
    font-size: 1.5rem !important;
    transition: transform 0.3s !important;
}

body .lob-faq-question.active .lob-faq-icon {
    transform: rotate(45deg) !important;
}

body .lob-faq-answer {
    padding: 0 20px !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s, padding 0.3s !important;
}

body .lob-faq-answer.show {
    padding: 0 20px 20px !important;
    max-height: 500px !important;
}

/* Progress Bar Styles */
body .lob-progress {
    margin: 30px 0 !important;
}

body .lob-progress-label {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
    font-weight: 500 !important;
}

body .lob-progress-bar {
    background: var(--light-gray) !important;
    height: 20px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

body .lob-progress-fill {
    height: 100% !important;
    border-radius: 10px !important;
    transition: width 1s ease !important;
}

body .lob-progress-green {
    background: var(--primary-green) !important;
}

body .lob-progress-blue {
    background: #4a90e2 !important;
}

body .lob-progress-coral {
    background: var(--accent-coral) !important;
}

/* Icon List Styles */
body .lob-icon-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
}

body .lob-icon-item {
    position: relative !important;
    padding-left: 35px !important;
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
}

body .lob-icon-item::before {
    content: attr(data-icon) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    font-size: 1.25rem !important;
}

body .lob-icon-green .lob-icon-item::before {
    color: var(--primary-green) !important;
}

/* Comparison Table */
body .lob-comparison {
    margin: 40px 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

body .lob-comparison-headers {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    background: var(--light-gray) !important;
}

body .lob-comparison-header {
    padding: 20px !important;
    font-weight: bold !important;
    text-align: center !important;
    font-size: 1.25rem !important;
}

body .lob-comparison-header:first-child {
    border-right: 1px solid #ddd !important;
}

body .lob-comparison-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

/* Video Embed Styles */
body .lob-video {
    margin: 40px 0 !important;
}

body .lob-video-wrapper {
    position: relative !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

body .lob-video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

body .lob-video-caption {
    text-align: center !important;
    margin-top: 15px !important;
    font-style: italic !important;
    color: var(--text-light) !important;
}

/* Divider Styles */
body .lob-divider {
    margin: 40px auto !important;
    text-align: center !important;
}

body .lob-divider-line {
    height: 1px !important;
    background: #ddd !important;
    max-width: 100px !important;
    margin: 0 auto !important;
}

body .lob-divider-dots::before {
    content: '• • •' !important;
    color: var(--text-light) !important;
    font-size: 1.5rem !important;
    letter-spacing: 1rem !important;
}

body .lob-divider-leaf::before {
    content: '🌿' !important;
    font-size: 2rem !important;
}

body .lob-margin-small {
    margin: 20px auto !important;
}

body .lob-margin-large {
    margin: 60px auto !important;
}

/* Testimonial Styles */
body .lob-testimonial {
    background: var(--light-gray) !important;
    padding: 40px !important;
    border-radius: 8px !important;
    margin: 40px 0 !important;
    display: flex !important;
    gap: 30px !important;
    align-items: start !important;
}

body .testimonial-image {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

body .testimonial-content {
    flex: 1 !important;
}

body .testimonial-text {
    font-style: italic !important;
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    color: var(--text-dark) !important;
}

body .testimonial-rating {
    margin-bottom: 15px !important;
}

body .testimonial-author strong {
    display: block !important;
    color: var(--text-dark) !important;
    margin-bottom: 5px !important;
}

body .testimonial-role {
    color: var(--text-light) !important;
    font-size: 0.9rem !important;
}

/* Related Posts Grid */
body .lob-related-posts {
    margin: 60px 0 !important;
    padding: 40px 0 !important;
    border-top: 1px solid #ddd !important;
}

body .related-title {
    text-align: center !important;
    margin-bottom: 40px !important;
    font-family: 'Playfair Display', serif !important;
}

body .related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

body .related-post {
    text-align: center !important;
}

body .related-post img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

body .related-post h4 {
    font-size: 1.125rem !important;
    margin: 0 !important;
}

body .related-post a {
    text-decoration: none !important;
    color: var(--text-dark) !important;
}

body .related-post a:hover h4 {
    color: var(--primary-green) !important;
}

/* Pinterest Image Styles */
body .lob-pinnable-image {
    position: relative !important;
    display: inline-block !important;
    margin: 30px 0 !important;
}

body .lob-pinnable-image img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

body .pin-it-button {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
}

body .pin-it-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

body .pinnable-hidden {
    display: none !important;
}

/* Author Bio Box */
body .lob-author-bio {
    background: var(--warm-beige) !important;
    padding: 40px !important;
    border-radius: 8px !important;
    margin: 60px 0 !important;
    display: flex !important;
    gap: 30px !important;
    align-items: center !important;
}

body .author-image {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

body .author-content {
    flex: 1 !important;
}

body .author-name {
    margin-bottom: 15px !important;
    font-family: 'Playfair Display', serif !important;
}

body .author-text {
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
}

body .author-link {
    color: var(--primary-green) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

body .author-link:hover {
    text-decoration: underline !important;
}

/* Nutrition Facts Table */
body .lob-nutrition-facts {
    background: var(--white) !important;
    border: 2px solid var(--text-dark) !important;
    padding: 30px !important;
    margin: 40px 0 !important;
    max-width: 400px !important;
}

body .nutrition-title {
    font-size: 1.5rem !important;
    margin-bottom: 10px !important;
    font-weight: bold !important;
    border-bottom: 8px solid var(--text-dark) !important;
    padding-bottom: 10px !important;
}

body .nutrition-servings {
    margin-bottom: 20px !important;
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
}

body .nutrition-grid {
    border-top: 1px solid #ddd !important;
    padding-top: 20px !important;
}

body .nutrition-item {
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #eee !important;
}

body .nutrition-label {
    font-weight: 500 !important;
}

body .nutrition-value {
    font-weight: bold !important;
}

/* Responsive Updates */
@media (max-width: 768px) {
    body .related-grid {
        grid-template-columns: 1fr !important;
    }
    
    body .lob-testimonial,
    body .lob-author-bio {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    body .testimonial-image,
    body .author-image {
        margin: 0 auto 20px !important;
    }
    
    /* Fix mobile image sizing */
    body .lob-image-wrapper,
    body .lob-img-small,
    body .lob-img-medium,
    body .lob-img-large {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    body .lob-image-wrapper img,
    body .lob-styled-img,
    body .entry-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure images don't overflow viewport */
    body .lob-img-small img {
        max-width: 100% !important;
    }
    
    body .lob-img-medium img {
        max-width: 100% !important;
    }
    
    body .lob-img-large img {
        max-width: 100% !important;
    }
    
    /* Fix pinnable images on mobile */
    body .lob-pinnable-image {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    body .lob-pinnable-image img {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Adjust container padding on mobile */
    body .container {
        padding: 0 15px !important;
    }
    
    /* Fix any overflow issues */
    body {
        overflow-x: hidden !important;
    }
    
    body .site-content {
        overflow-x: hidden !important;
    }
}

/* Magazine Style Blog Layout */
.homepage-posts-magazine {
    padding: 40px 0 !important;
    background: #fff !important;
}

.homepage-posts-magazine .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.section-header {
    text-align: center !important;
    margin-bottom: 60px !important;
}

.section-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.5rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 20px !important;
}

.section-divider {
    width: 80px !important;
    height: 3px !important;
    background: var(--primary-green) !important;
    margin: 0 auto !important;
}

/* Featured Post */
.magazine-featured {
    margin-bottom: 50px !important;
}

.featured-post {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 40px !important;
    align-items: center !important;
    background: var(--light-gray) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 40px !important;
}

.featured-image {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.featured-image img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.featured-image:hover img {
    transform: scale(1.05) !important;
}

.featured-overlay {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
}

.featured-label {
    background: var(--primary-green) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.featured-content {
    padding: 0 20px !important;
}

.post-meta {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
}

.post-category a {
    color: var(--primary-green) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.featured-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.featured-title a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.featured-title a:hover {
    color: var(--primary-green) !important;
}

.featured-excerpt {
    color: var(--text-light) !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

.read-more-arrow {
    color: var(--primary-green) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: gap 0.3s ease !important;
}

.read-more-arrow:hover {
    gap: 10px !important;
}

/* Secondary Posts */
.magazine-secondary {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 50px !important;
}

.secondary-post {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: box-shadow 0.3s ease !important;
}

.secondary-post:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

.secondary-wrapper {
    display: grid !important;
    grid-template-columns: 200px 1fr !important;
    height: 100% !important;
}

.secondary-image {
    overflow: hidden !important;
}

.secondary-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.secondary-post:hover .secondary-image img {
    transform: scale(1.05) !important;
}

.secondary-content {
    padding: 25px !important;
    display: flex !important;
    flex-direction: column !important;
}

.post-category-tag {
    display: inline-block !important;
    background: var(--accent-coral) !important;
    color: white !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 15px !important;
    width: fit-content !important;
}

.secondary-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}

.secondary-title a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.secondary-title a:hover {
    color: var(--primary-green) !important;
}

.secondary-excerpt {
    color: var(--text-light) !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    flex-grow: 1 !important;
}

.post-author {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    margin-top: auto !important;
}

/* Grid Posts */
.magazine-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    margin-bottom: 50px !important;
}

.grid-post {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
}

.grid-post:hover {
    transform: translateY(-5px) !important;
}

.grid-image {
    position: relative !important;
    overflow: hidden !important;
    height: 200px !important;
}

.grid-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.grid-post:hover .grid-image img {
    transform: scale(1.1) !important;
}

.grid-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent) !important;
    padding: 20px 15px 15px !important;
}

.grid-category {
    display: inline-block !important;
    background: var(--primary-green) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 3px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.grid-content {
    padding: 20px 15px !important;
    background: white !important;
}

.grid-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

.grid-title a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.grid-title a:hover {
    color: var(--primary-green) !important;
}

.grid-date {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
}

/* View All Button */
.view-all-wrapper {
    text-align: center !important;
    margin-top: 40px !important;
}

.view-all-fancy {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: var(--primary-green) !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
}

.view-all-fancy:hover {
    background: var(--soft-sage) !important;
    gap: 15px !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(107, 142, 35, 0.3) !important;
}

.view-all-fancy svg {
    transition: transform 0.3s ease !important;
}

.view-all-fancy:hover svg {
    transform: translateX(3px) !important;
}

/* Responsive Magazine Layout */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr !important;
        padding: 30px !important;
    }
    
    .featured-image img {
        height: 300px !important;
    }
    
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .magazine-secondary {
        grid-template-columns: 1fr !important;
    }
    
    .secondary-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    .secondary-image {
        height: 200px !important;
    }
    
    .magazine-grid {
        grid-template-columns: 1fr !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .featured-title {
        font-size: 1.5rem !important;
    }
}

/* Social Media Icons Styling */
body .header-social a,
body .footer-social a {
    font-size: 1.2rem !important;
    color: var(--primary-green) !important;
    transition: all 0.3s ease !important;
}

body .header-social a:hover,
body .footer-social a:hover {
    color: var(--soft-sage) !important;
    transform: translateY(-2px) !important;
}

/* Contact page social links */
body .social-links a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--primary-green) !important;
    text-decoration: none !important;
    margin-right: 20px !important;
    transition: all 0.3s ease !important;
}

body .social-links a:hover {
    color: var(--soft-sage) !important;
    transform: translateX(5px) !important;
}

body .social-links i {
    font-size: 1.2rem !important;
}

/* Disable pointer events on placeholder links */
body a[href="#"]:not([target]) {
    cursor: default !important;
    opacity: 0.5 !important;
}

body a[href="#"]:not([target]):hover {
    transform: none !important;
}

/* Fix button text colors - override global link styles */
body .entry-content a.lob-button {
    text-decoration: none !important;
}

body .entry-content a.lob-button.lob-button-primary {
    color: white !important;
    background: var(--primary-green) !important;
}

body .entry-content a.lob-button.lob-button-primary:hover {
    color: white !important;
    background: var(--soft-sage) !important;
}

body .entry-content a.lob-button.lob-button-secondary {
    color: var(--text-dark) !important;
    background: var(--warm-beige) !important;
}

body .entry-content a.lob-button.lob-button-secondary:hover {
    color: var(--text-dark) !important;
    background: var(--accent-coral) !important;
}

body .entry-content a.lob-button.lob-button-outline {
    color: var(--primary-green) !important;
    background: transparent !important;
    border: 2px solid var(--primary-green) !important;
}

body .entry-content a.lob-button.lob-button-outline:hover {
    color: white !important;
    background: var(--primary-green) !important;
}