/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: This is a child theme for the Astra WordPress theme.
Author: MD Wealth Partners
Author URI: https://mdwealthpartners.com
Template: astra
Version: 1.1.4
*/

/* --- Custom MD Wealth Partners Blog Styling --- */

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #FFFFFF; 
    color: #1A2C3C; 
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
}

/* Style the theme's default Post Title Area */
.ast-single-post .ast-page-title-wrap {
    padding: 0; 
    margin-bottom: 2em; 
}
.ast-single-post .entry-title {
    font-size: 2.25rem; 
    line-height: 2.5rem;
}

/* Remove extra top space from Wonder Blocks posts */
.entry-content > *:first-child {
    margin-top: 0 !important;
}

/* Adjust spacing for the main blog container */
.ast-container { 
    max-width: 900px; 
    margin: -64px auto 40px; 
}

/* Rules for list spacing */
.ast-single-post .entry-content ul > li,
.ast-single-post .entry-content ol > li { 
    margin-bottom: 1em !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.ast-single-post .entry-content ul > li:last-child,
.ast-single-post .entry-content ol > li:last-child {
    margin-bottom: 0 !important;
}
.ast-single-post .entry-content ol { 
    list-style-type: decimal; 
    list-style-position: inside; 
    padding-left: 20px; 
}

/* --- FINAL, DEFINITIVE Rules for aligned images in a Flexbox environment --- */
.entry-content figure.alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
    width: 50%; /* Define a width to allow text to wrap */
}
.entry-content figure.alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
    width: 50%;
}
/* This rule clears the float after the content, preventing layout breaks */
.entry-content > p:last-of-type::after {
    content: "";
    display: table;
    clear: both;
}


/* Styles for Custom Header/Footer Navigation */
.nav-link { 
    position: relative; 
    transition: color 0.3s ease; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 600; 
    /* REMOVED font-size: 1rem; to allow Tailwind text-sm to work */
}
.nav-link::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: -5px; 
    left: 50%; 
    transform: translateX(-50%); 
    background-color: #F59E0B; 
    transition: width 0.3s ease; 
}
.nav-link:hover::after { 
    width: 100%; 
}
.cta-button { 
    transition: all 0.3s ease; 
}
.cta-button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 
}
/* Added to match index.html exactly and fix button height */
.header-cta-button {
    text-align: center;
    line-height: 1.2;
}

/*
Theme Name: MD Wealth Partners Child
Theme URI: https://wpastra.com/
Description: This is a child theme for the Astra WordPress theme.
Author: MD Wealth Partners
Author URI: https://mdwealthpartners.com/
Template: astra
Version: 1.0.0
*/

/* --- Fix for Squeezed Featured Images on Blog Page --- */
.ast-blog-featured-section .post-thumb-img-content img,
.ast-archive-post .ast-post-format- img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}