.am_ajax_post_grid_wrap {
  box-sizing: border-box;
}

.asr-filter-div .asr_texonomy {
  display: inline-block;
  cursor: pointer;
}

.asr-filter-div ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .asr_texonomy.active,
.asr_texonomy:hover {
  background: rgba(0, 0, 0, 0.1);
} */

.asr-ajax-container {
  position: relative;
}

.asr-ajax-container .asr-loader {
  display: none;
}

/*****************
 * New Design
 *****************/
.asr-filter-div {
  margin-bottom: 20px;
}

.am_grid_col {
  /* padding: 0 15px; */
}

.am_post_grid {
  display: -ms-flexbox;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: 0;
  margin-left: 0;
}

/*Loading*/
.asr-loader {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  z-index: 9;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
}

.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 1px solid #333;
  border-color: #333 transparent #333 transparent;
  -webkit-animation: lds-dual-ring 1.2s linear infinite;
  animation: lds-dual-ring 1.2s linear infinite;
}

@-webkit-keyframes lds-dual-ring {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes lds-dual-ring {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Layout 1 */
.am_single_grid {
  /* box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: block; */
}

.am_thumb {
  /* height: 80%; */
  overflow: hidden;
}

.am_thumb img {
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  height: 100%;
  width: 100%;
  margin: 0 !important;
  border-radius: 0;
  -webkit-transition: -webkit-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
}

.am_cont {
  padding: 20px;
}

.am__col-3 .am_grid_col {
  /* margin-bottom: 30px; */
}

@media screen and (min-width: 992px) {
  .am__col-3 .am_grid_col {
    -ms-flex: 0 0 33%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 33%;
    flex: 0 0 33%;
    max-width: calc((100% - 40px) / 3) !important;
  }

  .am__col-2 .am_grid_col {
    -ms-flex: 0 0 33%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: calc((100% - 20px) / 2) !important;
  }

  .asr-filter-div {
    margin-bottom: 20px;
  }
}

/* End Layout 1 */

/* Layout 1 Responsive */
@media only screen and (max-width: 767px) {
  .am__col-3 .am_grid_col {
    -ms-flex: 0 0 100%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* End Layout 1 Responsive */

/* Paginaion */
#am_posts_navigation_init {
  margin: 30px 0;
  text-align: center;
  visibility: hidden;
}

#am_posts_navigation_init .page-numbers {
  width: 30px;
  display: inline-block;
  height: 30px;
  text-align: center;
  line-height: 1.2;
  border: 1px solid #c6c6c6;
  padding: 4px;
  text-decoration: none;
}

#am_posts_navigation_init .page-numbers.current,
#am_posts_navigation_init .page-numbers:hover {
  background: #f0f0f0;
}

.am_posts_navigation {
  text-align: center;
  margin-bottom: 40px;
  visibility: hidden;
}

/* End Paginaion */

/* Loding Animation */
.am-post-grid-load-more {
  position: relative;
}

.am-post-grid-load-more.loading:after {
  content: "";
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  animation: spin 1s ease-in-out infinite;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 9;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Eng Loding Animation */

.am_has_animation .am_grid_col {
  display: none;
}

.asr_close-button.d-none {
  visibility: hidden;
}

/* scroll */

.container-filter::-webkit-scrollbar-thumb {
  border-radius: 1px;
  background-color: transparent;
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
}

.asr_texonomy {
  flex: none;
}

.container-filter::-webkit-scrollbar {
  display: block !important;
  -webkit-appearance: none;
  width: 1px;
  height: 20px;
}

/* CUSTOM CSS */

.filter_projects {
  width: 300px;
}
.filter_projects #continent-select, .filter_projects #nation-select{
  border: none;
  border-bottom: 0.5px solid #000;
  border-radius: 0;
  background: transparent;
}

#continent-select:focus,
#continent-select:active, #nation-select:focus,
#nation-select:active {
  outline: none;
}



.container_filter_projects{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}



/* overlay nascosto di default */
.spinner-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
  display: none;             /* << hidden by default */
  align-items: center;
  justify-content: center;
}

/* lo spinner vero e proprio */
.spinner {
  border: 4px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  width: 40px; height: 40px;
  animation: spin 1s linear infinite;
}

/* animazione */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* quando serve mostrarlo, semplicemente override a flex */
.spinner-overlay.active {
  display: flex;
}

.filter_projects select {
  /* Disabilita l’aspetto nativo WebKit/Mac */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Il tuo stile “a linea” */
  border: none;
  border-bottom: 0.5px solid #000;
  border-radius: 0;
  background: transparent;

  /* spazio per la freccia custom */
  padding: 8px 30px 8px 0;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
}

/* Rimuove la freccia di default su IE/Edge */
.filter_projects select::-ms-expand {
  display: none;
}

/* disegna la freccia custom (puoi anche usare una SVG esterna) */
.filter_projects {
  position: relative;
}
.filter_projects::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translateY(-50%);
  border-left: 4px solid transparent; 
  border-right: 4px solid transparent; 
  border-top: 5px solid #000; 
}

.filter_projects:has(select:disabled)::after {
  border-top-color: #808080;
}


#continent-select,
#nation-select {
  /* rimuove eventuali appearance di sistema */
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;

  /* forza il testo in nero anche su iOS Safari */
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* Stile per la select disabilitata */
select:disabled {
  background-color: #f0f0f0; /* Colore di sfondo grigio chiaro */
  color: #a0a0a0;            /* Colore del testo grigio */
  opacity: 0.6;              /* Opacità per un effetto più chiaro */
  cursor: not-allowed;       /* Cursore per indicare che l'elemento è disabilitato */
}
