/*
 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
*/
body {
    text-shadow: 1px 1px #cccccc
}

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

body.single article .entry-title {
    font-weight: bolder;
}
body.search .car_brands {
    display: none;
}
/* Brand logo style */
@media (min-width: 769px) {
    .car-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Responsive grid */
        gap: 20px;
    }
    .car-logo {
        max-width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .car-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Responsive grid */
        gap: 10px;
    }
    .car-logo {
        max-width: 80px;
        height: 80px;
    }
}

.car-brands-grid {
    display: grid;
    margin: 20px 0;
}

.car-brands-grid a {
    text-decoration: none;
}

.car-brand {
    text-align: center;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s;
}

.car-brand:hover {
    transform: scale(1.05);
}

.car-logo {
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.car-brand-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0;
    color: #333;
}
/* Post card grid layout with 3 posts per row */
/* Grid container for posts */
body:not(.single) .site-main {
    display: grid;
    grid-template-columns: repeat(3, 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
}

body:not(.single) .site-main .post .inside-article {
    padding: 20px;
    border-radius: 8px;
}

body:not(.single) .site-main .post .inside-article:hover {
    box-shadow: 1px 0px 12px #cccccc;
}

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;
}

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

@media (max-width: 480px) {
    body:not(.single) .site-main {
        grid-template-columns: 1fr; /* 1 column for mobile devices */
    }
}
#footer-widgets li { 
	display: inline-block;
}
#footer-widgets li a { 
	margin : 5px 8px;
    color: #000;
    text-decoration: none;
}