/* Grid wrapper for shortcode */
.peonixis-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    justify-content: center; /* center the 3 fixed columns */
    gap: 20px;
}

.peonixis-blog-grid .post-module {
    width: 350px;
    min-height: 400px;
}
/* Style Load More button */
.peonixis-blog-loadmore-wrap .peonixis-load-more {
    background: linear-gradient(90deg, #0456b8 0%, #3696ee 100%) !important;
    padding: 20px 30px !important;
    border: none !important;
    border-radius: 15px !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 16px !important;
    cursor: pointer;
    text-align: center;
}

/* Optional hover effect */
.peonixis-blog-loadmore-wrap .peonixis-load-more:hover {
    opacity: 0.9;
}

/* Responsive: 2 columns on medium, 1 on small */
@media (max-width: 1140px) {
    .peonixis-blog-grid {
        grid-template-columns: repeat(2, 350px);
    }
}
@media (max-width: 760px) {
    .peonixis-blog-grid {
        grid-template-columns: 1fr;
    }
    .peonixis-blog-grid .post-module {
        width: 100%;
        min-width: 0;
    }
}

/* Card */
.post-module {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #000;
    border-radius: 15px;
    overflow: hidden;
    min-width: 350px;
    height: 100%;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.15);
    transition: all 0.3s linear;
}

/* Make entire card clickable */
.post-module .post-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 5;
    text-indent: -9999px;
    overflow: hidden;
}

.post-module:hover {
    box-shadow: 0px 1px 35px rgba(0,0,0,0.3);
}

/* Thumbnail */
.post-module .thumbnail {
    background: #000;
    height: 220px;
    overflow: hidden;
}

.post-module .thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: all 0.3s linear;
}

.post-module:hover .thumbnail img {
    transform: scale(1.1);
    opacity: 0.6;
}

/* Content area */
.post-module .post-content {
    position: relative;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Titles */
.post-module .post-content .title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.post-module .post-content .sub_title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
}

/* Description should expand */
.post-module .post-content .description {
    font-size: 14px;
    color: #000;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

/* AUTHOR META FIXED BOTTOM */
.post-module .post-content .author-meta {
    margin-top: auto;
    padding-top: 14px;
    margin-bottom: 8px; /* slight gap from bottom */
}

/* Avatar */
.post-module .post-content .post-author .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 32px;
}

.post-module .post-content .post-author .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Meta structure */
.author-meta {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Name+Date left AND Read time right */
.author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left section */
.author-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Right section */
.author-right {
    display: flex;
    align-items: center;
}

/* Unified text styling */
.author-left span,
.author-right span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(0,0,0,0.6);
    font-weight: 500;
}

/* Read time smaller */
.author-right span {
    font-size: 11px;
    opacity: 0.75;
}

/* Icons */
.icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: cover;
    opacity: 0.7;
}

.author-icon {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm4 8c.552 0 1-.448 1-1v-.5c0-2.21-3.134-3.5-5-3.5s-5 1.29-5 3.5V15c0 .552.448 1 1 1h8Z'/%3E%3C/svg%3E");
}

.calendar-icon {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888'%3E%3Cpath d='M3 1v1H1v13h14V2h-2V1h-2v1H5V1H3Zm11 4H2v9h12V5Z'/%3E%3C/svg%3E");
}

.clock-icon {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm.5 3H7v4.25l3.5 2.1.75-1.23L8.5 7.5V4Z'/%3E%3C/svg%3E");
}
