/* Widget Container */
.custom-post-listing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: flex-start; /* Ensure proper alignment */
}

/* Align Everything to Left */
.text-left {
    text-align: left;
}

/* Post Item */
.post-item {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensures all elements inside align to the left */
}

/* Featured Image */
.post-image {
    width: 100%;
    margin-bottom: 10px;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Tags - Ensure Proper Display */
.post-tags {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
}

/* Tag Colors */
.post-tags .tag {
    display: inline-block;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
    cursor: pointer;
}

/* First Tag - Main Color */
.post-tags .tag:nth-child(1) {
    background: #726097;
}

.post-tags .tag:nth-child(1):hover {
    background: #5a4b7a;
}

/* Second Tag - Secondary Color */
.post-tags .tag:nth-child(2) {
    background: #6b8978;
}

.post-tags .tag:nth-child(2):hover {
    background: #557060;
}

/* Default Tag Color for Others */
.post-tags .tag:nth-child(n+3) {
    background: #ff7f50;
}

.post-tags .tag:nth-child(n+3):hover {
    background: #ff5733;
}

/* "..." Button */
.more-tags {
    background: #333;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
}

.more-tags:hover {
    background: #555;
}

/* Hidden Tags */
.hidden-tags {
    display: none;
}

/* Post Title */
.post-title {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    text-align: left;
}

.post-title a {
    text-decoration: none;
    color: #333;
}

.post-title a:hover {
    color: #0073aa;
}

/* Post Excerpt */
.post-excerpt {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
    text-align: left;
}

/* Author Section */
.post-author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-top: 10px;
}

/* Circular Author Image */
.post-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Author Name */
.author-name {
    font-weight: bold;
    color: #333;
}
