.post-query-widget {
    position: relative;
}

.post-query-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.post-query-carousel {
    margin-bottom: 30px;
}

/* Grid gap for carousel - overridden by Elementor selectors */

/* Slick Carousel Dots Styling */
.post-query-carousel .slick-dots.custom-dots {
    bottom: -40px;
    /* Default gap, overridden by Elementor selector */
    display: flex !important;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-query-carousel .slick-dots.custom-dots li {
    display: inline-block;
}

.post-query-carousel .slick-dots.custom-dots li button {
    width: 12px;
    height: 12px;
    border: none;
    background: #ddd;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: pointer;
    padding: 0;
    font-size: 0;
}

.post-query-carousel .slick-dots.custom-dots li.slick-active button {
    opacity: 1;
    background: #007cba;
}

.post-query-carousel .slick-dots.custom-dots li button:before {
    display: none;
}

.post-query-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.post-query-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease, background-image 0.3s ease, color 0.3s ease;
}

.post-query-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
/*     margin-bottom: 15px; */
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-query-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.post-query-item h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.post-query-item h3 a:hover {
    color: #007cba;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.post-author,
.post-date,
.post-comments {
    display: inline-block;
}

.post-excerpt {
    color: #666;
    line-height: 1.5;
}

.post-query-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: fit-content;
    margin: auto;
    border-radius: 6px;
    margin: 50px auto 50px auto;
}

.page-number,
.pagination-arrow {
    display: inline-block;
    /* padding: 8px 12px; */
    line-height: 40px;
    text-align: center;
    background: transparent;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.page-number:hover,
.page-number.active,
.pagination-arrow:hover,
.pagination-arrow.active {
    background: transparent;
    color: #fff;
}

.pagination-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive columns now handled by JavaScript */


/* .post-query-carousel .slick-slide {
    margin: 0 50px !important;
  }
  
  .post-query-carousel .slick-list {
    margin: 0 -50px !important;
  } */