/* Hide author and category under posts - 32672791-hc | AR */
footer .byline {
	display: none;
}

footer .cat-links {
	display: none;
}
/* TFH Custom Footer Images */
.trust-badges {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
	padding: 20px 0 10px 0;
}

.trust-badges img {
	max-width: 80px;
	height: auto;
}

.footer-copyright {
	text-align: center;
	padding: 10px 0 20px 0;
	border-top: 1px solid #ddd;
	font-size: 14px;
	color: #555;
}
/* Hide the footer menu */
.footer-menu,
.footer-navigation {
    display: none !important;
}
/* Rockfield theme footer container */
/* Full-width footer background */
.site-footer {
    background-color: #f4f4f4; /* Match your design */
}
/* Constrain the footer width and center it */
.site-footer .widget-area.responsive-max-width {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Even gaps between columns */
.site-footer .wp-block-columns {
    gap: 30px;
    justify-content: flex-start;
}

/* Make each column equal width */
.site-footer .widget-area .wp-block-column {
    flex: 1 1 0;
    text-align: left;
    padding: 10px 0;
}

/* Style the headings */
.site-footer .wp-block-column h3,
.site-footer .wp-block-column h4,
.site-footer .wp-block-column .widget-title {
    margin-bottom: 15px;
    font-weight: 600;
}

/* Style the lists */
.site-footer .wp-block-column ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.site-footer .wp-block-column ul li {
    margin-bottom: 8px;
}

/* Add some top and bottom padding to the footer area */
.site-footer .widget-area {
    padding-top: 1px;
    padding-bottom: 1px;
}
/* Hide the entire entry footer */
.entry-footer {
    display: none !important;
}
/* start of blog posts */
/* ==========================================================================
   DESKTOP ONLY LAYOUT 
   Applies ONLY to screens 768px and wider. Mobile screens use theme default.
   ========================================================================== */
@media screen and (min-width: 768px) {
    
    /* 1. Re-establish the clean, spacious 3-column layout grid */
    .blog .site-main, .archive .site-main {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 35px !important;
        padding: 20px 0 50px 0 !important;
    }

    /* Guard the website footer block from turning into a column grid */
    .blog .site-main > footer, 
    .blog .site-main > .site-footer,
    #colophon {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    /* 2. Format the layout cards as dynamic boxes */
    .blog article.post, .archive article.post {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        padding: 20px !important;
        background: #ffffff !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        border: 1px solid #eaeaea !important;
    }

    /* 3. Crop images perfectly and align them to the top row edge */
    .blog .post-thumbnail, .archive .post-thumbnail {
        order: -3 !important;
        margin: -20px -20px 20px -20px !important; 
        overflow: hidden !important;
        display: block !important;
    }

    .blog .post-thumbnail img, .archive .post-thumbnail img {
        width: 100% !important;
        height: 200px !important; /* Uniform height for all garage pictures */
        object-fit: cover !important;
        border-radius: 6px 6px 0 0 !important;
    }

    /* 4. Fix Title layout alignment so the orange headers match perfectly */
    .blog .entry-header, .archive .entry-header {
        order: -2 !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        min-height: 85px !important; /* Forces orange headers to occupy identical vertical space */
    }

    .blog .entry-title, .archive .entry-title {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    /* 5. Force the content boxes to fill the cards and line up horizontally */
    .blog .entry-content, .archive .entry-content,
    .blog .entry-summary, .archive .entry-summary {
        order: -1 !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important; 
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: #444444 !important;
        margin: 0 0 20px 0 !important;
    }

    /* 6. Push paragraph strings down and clear text layout space blocks */
    .blog .entry-content p, .archive .entry-content p,
    .blog .entry-summary p, .archive .entry-summary p {
        margin-bottom: 0 !important;
        flex-grow: 1 !important; /* Automatically expands individual text areas to line up the baselines */
    }

    /* 7. Un-jam the "Continue reading" links and drop them cleanly to the bottom line */
    .blog .more-link, .archive .more-link, 
    .blog .entry-content a.more-link, .blog article.post p a.more-link {
        display: block !important;
        margin-top: auto !important; /* Snaps the text cleanly down to the baseline row */
        padding-top: 15px !important;
        font-weight: 600 !important;
        color: #cc3300 !important; /* Brand orange color */
        text-decoration: none !important;
    }
}
