/* Styling for the site posts container */
.myplugin-site-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns by default */
    gap: 3rem;
    padding: 20px;
}

/* Styling for individual post cards */
.site-post {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.site-post:hover {
    transform: translateY(-5px);
}

/* Styling for the post image */
.site-post-image {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Post content section */
.site-post-content {
    padding: 2rem;
    text-align: left;
    flex: 1; /* Pushes read-more to bottom if needed */
}

.site-post-content h3 a {
    margin: 0 0 10px;
    font-size: 1em;
}

.site-post-content p {
    color: #555;
    font-size: 0.95em;
}

.read-more {
    display: inline-block;
    background: #fee600;
    color: #fff;
    padding: 15px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-in-out;
    margin-top: 1.5rem;
}

.read-more:hover {
    background: #fee600;
    color: #2e2e78;
}

.myplugin-site-posts-filter {
    margin-bottom: 20px;
    margin-left: 1.25rem;
}
.myplugin-site-posts-filter form {
    display: inline-block;
}


/*----------------------------------
  RESPONSIVE DESIGN - GRID BREAKPOINTS
----------------------------------*/
@media (max-width: 1200px) {
    .myplugin-site-posts {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on laptop */
    }
}

@media (max-width: 900px) {
    .myplugin-site-posts {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .myplugin-site-posts {
        grid-template-columns: 1fr; /* 1 column on phone */
    }
}
