/*
 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
*/

#primary-menu ul li {
	margin-bottom: 0
}
.inside-header {
    padding: 8px 40px;
}
a {
	text-decoration: none;
}
.wp-block-latest-posts a {
	color: #000;
}

.widget-area .widget {
    padding: 0;
}

aside .wp-block-group ul {
	padding: 10px 20px
}

aside .wp-block-group .wp-block-heading {
	padding: 12px 10px;
	
}
aside  {
	border-radius: 10px;
}

.single .featured-image img,
.single article,
aside .wp-block-group {
	border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wp-block-heading {
	    border-bottom: 1px solid #ccc;
    padding-bottom: 11px;
	    font-size: 22px;
    font-weight: 500;
}

.single ul {
	    margin-left: 25px;
}
ul li {
	margin-bottom: 22px;
	
}
ul li h3 {
	margin-bottom: 8px;
	 font-size: 22px;
    font-weight: 500;
}

.home .entry-summary,
.gp-icon.icon-comments,
.gp-icon.icon-categories {
	display: none	
}

body {
    text-shadow: 1px 1px #cccccc
}

.site.grid-container {
    padding: 0 10px;
}

body.single article .entry-title {
    font-weight: bolder;
}

/* Post card grid layout with 3 posts per row */
/* Grid container for posts */
body:not(.single) .site-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 columns */
    gap: 20px; /* Space between posts */
}

body:not(.single) .site-main > * {
    margin-bottom: 0;
}

body:not(.single) .page-header {
    padding: 25px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 1px 0px 12px #cccccc;
}

body:not(.single) .site-main .post .read-more {
    display: block;
    background: #000;
    color: #fff;
    text-decoration: none;
    text-align: center;
    width: 90px;
    margin-left: auto;
    padding: 4px;
    border-radius: 5px;
    font-size: 14px;
    text-shadow: 0 0 #cccccc;
	margin-top: 15px;
}

body:not(.single) .site-main .post .inside-article {
    padding: 20px;
    border-radius: 8px;
	
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

body:not(.single) .site-main article.post:hover {
    box-shadow: 0px 2px 14px #cccccc;
	transition: box-shadow .1s ease-in-out;
}

body:not(.single) .site-main .post .entry-meta {
    border-top: 1px solid #cccccc;
    padding-top: 15px;
    margin-top: 1em;
    display: flex;
    justify-content: space-between;
}

body:not(.single) .site-main .post .entry-meta a {
    color: #000000;
    text-decoration: none;
}

/* Ensure each post is styled like a card */
body:not(.single) .post h2 {
    font-size: 1.25rem; /* Match the font size of h4 */
    font-weight: normal; /* Match the weight of h4 */
    margin: 0 0 15px; /* Adjust spacing */
    line-height: 1.5; /* Line height similar to h4 */
}

body:not(.single) .post {
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Make post images responsive */
body:not(.single) .post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (min-width: 768px) {
    body:not(.single) .site-main {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
    body:not(.single) .site-main {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
	
	.single .entry-title {
		font-size: 25px
	}
}

@media (max-width: 480px) {
    body:not(.single) .site-main {
        grid-template-columns: 1fr; /* 1 column for mobile devices */
    }
}
