/**
 * Blog - Modern Grid Layout
 */

/* Grid container */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 20px 0 30px;
}
@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }
}

/* Card */
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.post-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}

/* Image */
.post-card__image-link {
    display: block;
    text-decoration: none;
}
.post-card__image-wrap {
    position: relative;
    overflow: hidden;
    padding-bottom: 56%;
    background: #f0f0f0;
}
.post-card__image-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card__image-wrap img {
    transform: scale(1.04);
}

/* Social share icons - appear on image hover */
.post-card__share {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.post-card:hover .post-card__share {
    opacity: 1;
    transform: translateX(0);
}
.post-card__share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.post-card__share-btn:hover { transform: scale(1.15); }
.post-card__share-btn svg {
    width: 14px; height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.post-card__share-btn--facebook { background: #1877f2; }
.post-card__share-btn--twitter  { background: #1da1f2; }
.post-card__share-btn--pinterest { background: #e60023; }
.post-card__share-btn--pinterest svg { fill: #fff; stroke: none; }

/* Body */
.post-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta (date/author from getInfoHtml) */
.post-card__body .post-info,
.post-card__body .post-data-wrap {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Title */
.post-card__title {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 12px;
}
.post-card__title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}
.post-card__title a:hover { color: #4db2ec; }

/* Excerpt */
.post-card__excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 16px;
    flex: 1;
}
.post-card__excerpt p { margin: 0; }

/* Read More */
.post-card__readmore {
    display: inline-block;
    align-self: flex-start;
    background: #4db2ec;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.post-card__readmore:hover {
    background: #222222;
    color: #fff;
    text-decoration: none;
}
