/**
 * One Elementor - One Post Grid Widget
 * Post Grid Styles
 */

/* ========================================
   Post Grid Container
======================================== */
.oe-post-grid-wrapper {
    width: 100%;
}

.oe-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}

/* ========================================
   Post Item Card
======================================== */
.oe-post-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.oe-post-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   Post Image
======================================== */
.oe-post-image {
    position: relative;
    overflow: hidden;
    background-color: #F5F5F5;
    height: 200px;
    line-height: 0;
}

.oe-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    vertical-align: top;
}

.oe-post-item:hover .oe-post-image img {
    transform: scale(1.05);
}

.oe-post-image a {
    display: block;
    height: 100%;
    line-height: 0;
}

/* ========================================
   Post Content
======================================== */
.oe-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

/* Post Title */
.oe-post-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #333333;
}

.oe-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oe-post-title a:hover {
    color: #FF6B6B;
}

/* ========================================
   Post Meta
======================================== */
.oe-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999999;
    margin-top: auto;
}

.oe-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.oe-post-meta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

.oe-post-date {
    color: #999999;
}

.oe-post-comments,
.oe-post-views {
    color: #999999;
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .oe-post-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 15px;
        row-gap: 15px;
    }

    .oe-post-image {
        height: 180px;
    }

    .oe-post-content {
        padding: 15px;
        gap: 10px;
    }

    .oe-post-title {
        font-size: 15px;
    }

    .oe-post-meta {
        font-size: 12px;
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .oe-post-grid {
        grid-template-columns: repeat(1, 1fr);
        column-gap: 10px;
        row-gap: 10px;
    }

    .oe-post-image {
        height: 200px;
    }

    .oe-post-content {
        padding: 15px;
    }

    .oe-post-title {
        font-size: 14px;
    }

    .oe-post-meta {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .oe-post-content {
        padding: 12px;
    }

    .oe-post-title {
        font-size: 14px;
    }

    .oe-post-meta {
        font-size: 11px;
        gap: 10px;
    }
}