/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.site-header, .entry-header{
    border-bottom: 1px solid #e5e5e5;
}
.site-info, .footer-widgets{
    border-top: 1px solid #e5e5e5; 
}
.sidebar .widget, .paging-navigation, .inside-article, .page-header{
    border: 1px solid #e5e5e5;
}
.site-footer .footer-widgets-container .inside-footer-widgets{
    margin-left: 0px;
}
.widget-area .widget {
    padding:20px;
}
.entry-header{
    padding-bottom: 1em;
}
.post-image{
    text-align:center;
}
.footer-bar-active .footer-bar .widget {
 padding: 1em;
    border: 0;
    line-height: 2em;
}

.footer-bar{
    text-align: center;
    margin: 0px auto !important;
}
/**
@media(min-width: 769px) {
    .inside-right-sidebar {
        position: sticky;
        top: 0;
    }
}
**/

/* Inline Related */
.inline-related {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    border: 0.5px dashed #9b1717;
    border-radius: 6px;
    background: #fff;
    /* transition: background 0.2s ease-in-out; */
    /* box-shadow: 0px 0px 3px #d7d7d7; */
}
.inline-related:hover {
    /* background: #fdf5f5; */
    /* box-shadow: 0px 0px 3px #999999; */
}
.inline-related a {
    display: flex;
    text-decoration: none;
    width: 100%;
    align-items: flex-start;
}
.inline-img img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    max-width: inherit;
}
.inline-title {
    font-size: 0.95em;
    line-height: 1.3;
    padding-left : 10px;
}


/* Bottom Related */
.related-posts {
    margin-top: 40px;
}
.related-posts h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.related-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease-in-out;
}
.related-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.related-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.related-meta {
    padding: 10px;
}
.related-date {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}
.related-title {
    font-size: 1em;
    margin: 0;
    line-height: 1.3;
}

.widget_recent_entries ul li {
    border-bottom: 1px solid #ddd;
    padding: 10px 0px;
}