/* Container Wrapper */
.posts-grid-addon-for-elementor-wrapper {
    margin: 20px 0;
    width: 100%;
}

/* Category Title styling */
.posts-grid-addon-for-elementor-category-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
}

/* Grid Logic */
.posts-grid-addon-for-elementor-container {
    display: grid;
    grid-gap: 25px;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
}

/* Individual Post Item */
.posts-grid-addon-for-elementor-item {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.posts-grid-addon-for-elementor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Thumbnail Styling */
.posts-grid-addon-for-elementor-thumb img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Title Styling */
.posts-grid-addon-for-elementor-title {
    font-size: 1.25rem;
    margin: 10px 0;
    line-height: 1.4;
}

.posts-grid-addon-for-elementor-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.2s;
}

.posts-grid-addon-for-elementor-title a:hover {
    color: #0073e6;
}

/* Excerpt Styling */
.posts-grid-addon-for-elementor-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-top: auto;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .posts-grid-addon-for-elementor-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .posts-grid-addon-for-elementor-container {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .posts-grid-addon-for-elementor-thumb img {
        height: 200px !important;
    }
}