/*
Theme Name: bahvsTheme
Theme URI: https://bahvs.com/
Author: BAHVS Migration
Author URI: https://bahvs.com/
Description: Custom theme for BAHVS, migrated from static HTML demo site. Fully responsive with center-aligned content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bahvstheme
*/

/* Remove default WordPress wrappers for Thrive Visual Editor compatibility */
body.tve_lp,
body.tve_lp .tve_wrap_all {
    margin: 0;
    padding: 0;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Basic typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Remove default WordPress content wrappers */
#page,
.site-content,
.site-main,
#primary {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* Ensure Thrive content displays properly */
.tve_wrap_all,
#tcb_landing_page {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Blog styles */
.blog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blog-post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.blog-post:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.entry-title a {
    text-decoration: none;
    color: #333;
}

.entry-title a:hover {
    color: #1d7d7a;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.entry-content {
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.single-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive layout */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .blog-wrapper,
    .single-post {
        padding: 10px;
    }
    
    .entry-title {
        font-size: 24px;
    }
}

/* Preserve all inline styles and colors from demo */
.entry-content * {
    /* Allow all inline styles to work */
}

/* Ensure background colors are preserved */
.entry-content [style*="background"],
.entry-content [style*="color"],
.entry-content [style*="rgb"],
.entry-content [style*="rgba"] {
    /* Inline styles take precedence */
}

/* Preserve text colors */
.entry-content span[style*="color"],
.entry-content h1[style*="color"],
.entry-content h2[style*="color"],
.entry-content h3[style*="color"],
.entry-content p[style*="color"] {
    /* Inline color styles preserved */
}

/* Ensure images display correctly */
.entry-content img {
    display: inline-block;
    vertical-align: middle;
}

/* Preserve Thrive Visual Editor styles */
.tve_wrap_all,
.tve_post_lp,
.tve_lp_template_wrapper,
.thrv_wrapper,
.tve-cb {
    /* Preserve all Thrive styles */
}

/* Preserve content box styles */
.thrv-content-box {
    /* Content box styles preserved */
}

/* Remove default WordPress content wrapper for homepage */
.home .site-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.home .entry-content {
    padding: 0;
    margin: 0;
}

/* Ensure full width for Thrive pages */
.tve_wrap_all {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Preserve all inline styles */
[style*="color"],
[style*="background"],
[style*="rgb"],
[style*="rgba"] {
    /* Inline styles take precedence */
}

