
/* Pagination wrapper */
.ajax-pagination {
  display: block;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align:center;
}

/* Pagination links */
.ajax-pagination a.ajax-page{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 16px;
  line-height: 1;
  border-radius: 4px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: #fff;
  margin:0 5px;
}

/* Hover */
.ajax-pagination a:hover {
  background-color: #1e7e34; /* change color if needed */
  color: #fff;
  border-color: #1e7e34;
}

/* Active page */
.ajax-pagination .current, .ajax-pagination .active  {
  background-color: #1e7e34;
  border-color: #1e7e34;
  color: #fff;
  font-weight: 600;
  cursor: default;
}

/* Disabled prev/next (if any) */
.ajax-pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}
.ajax-pagination .status-publish a{
  padding: 0;
}
/* Mobile adjustments */
@media (max-width: 767px) {
  .ajax-pagination {
    gap: 6px;
  }

  .ajax-pagination a,
  .ajax-pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 14px;
  }
}


.custom-ajax-grid .elementor-grid-item {
    display: flex;
    height: 100%;
}

/* FILTER DESIGN */

.acf-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.acf-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.acf-checkbox-item input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    position: relative;
}

.acf-checkbox-item input:checked + .custom-checkbox {
    background: #3d00ff;
    border-color: #3d00ff;
}

.acf-checkbox-item input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.loader {
    width: 30px;
    height: 30px;
    margin: 20px auto;
    border: 3px solid #ccc;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.acf-filter-wrapper {
    width: 100%;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
}

/* ✅ Search box */
.acf-search-box {
    position: relative;
    margin-bottom: 10px;
}

#acf-country-search {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border-radius: 8px;
    border: 2px solid #ccc;
}

.acf-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
}

/* ✅ Scroll area */
.acf-checkbox-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

/* ✅ Checkbox item */
.acf-checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

.acf-checkbox-item:hover {
    background: #f3f3f3;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

/* ✅ Hide default checkbox */
.acf-country-checkbox {
    display: none;
}

.acf-country-checkbox:checked + .custom-checkbox {
    background: #0073aa;
    border-color: #0073aa;
}

/* ✅ Clear button */
#acf-clear-filters	 {
    margin-top: 10px;
    width: 100%;
    background: none;
    border: none;
    color: #2a5c8a;
    font-weight: bold;
    cursor: pointer;
}
