.list-wrapper br,
p:empty {
  display: none;
}
.list-wrapper a:active,
.list-wrapper a,
.list-wrapper li,
.list-wrapper .post-list {
  font-family: var(--e-global-typography-4ddf17b-font-family), Sans-serif;
  list-style: none;
  text-decoration: none;
  outline: none;
  color: #474a55;
}
.list-wrapper ul {
  margin: 0;
  padding: 0;
}
#posts-listing,
#category-display {
  /* display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch; */
  /* justify-content: space-between; */
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 24px;
}

.post-list,
.cat-list {
  /* height: 300px; */

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  margin-bottom: 24px;
  align-items: flex-start;
}
.post-list {
  height: auto;
  /* justify-content: flex-start; */
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 30px 0px #32323214;
  overflow: hidden;
  border-radius: 16px;
}

.post-list .post-list-body {
  padding: 16px;
  width: 100%;
}
.post-list-body h4 {
  font-size: 24px;
}
.post-list-body h4,
.post-list-body p {
  margin-top: 0;
}

.feature-img-container {
  /* height: 200px; */
  position: relative;
  width: 100%;
}
.feature-img-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: center left;
}

/* filter */
#category-filter {
  margin-bottom: 36px;
}
.cat-filter {
  padding: 8px 48px 8px 12px;
  margin: 8px 12px;
  background-color: #474a55;
  position: relative;
  display: inline-block;
  border-radius: 50px;
  color: white;
  text-decoration: none;
}
.remove-filter {
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 0px 10px 0;
  cursor: pointer;
  margin-left: 8px;
  border-radius: 50px;
  transition: background-color 0.3s;
}
.remove-filter:hover {
  background-color: white;
  color: #1e1d26;
}
/* ----- */
#post-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
}
#post-pagination li {
  padding: 0;
  margin: 8px;
}
/* #top-nav-menu ul li a, */
#post-pagination a {
  padding: 8px 16px;
  display: block;
  cursor: pointer;
  border-radius: 8rem;
}
#post-pagination a {
  background-color: #e8f1ff;
}

#post-pagination li a.active,
#post-pagination li a:hover {
  background: var(--secondary-dark);
  background-blend-mode: multiply;
  color: white;
}
/* --- */
#top-nav-menu {
  padding: 8px;
  background-color: #e8f1ff;
  border-radius: 100px;
  margin-bottom: 24px;
}
#top-nav-menu ul.sub-menu {
  /* display: flex; */
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;

  grid-template-columns: 1fr;
  width: max-content;
  text-align: center;
  max-width: 70vw;
}
#top-nav-menu ul li a {
  color: #1e1d26;
}
#top-nav-menu ul li a:hover {
  color: #0437ef;
}
/* --------- */
.post-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(67, 67, 67, 1) !important;
  border-radius: 10rem;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0em;
  padding: 0 24px;
  z-index: 15;
}

/* --------- */
.cat-list {
  background-color: linear-gradient(
    55.68deg,
    rgba(167, 92, 228, 1) 0%,
    rgba(167, 92, 228, 1) 100%
  );
  background: var(--primary);
  padding: 16px;
  box-sizing: border-box;
  position: relative;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.cat-list .read-more {
  padding: 16px 32px 16px 32px;
  border-radius: 72px 32px 72px 32px;
  background: linear-gradient(55.68deg, #ffb800 0%, #ff8900 100%);
  color: white;
  /* font-size: 20px; */
  font-weight: 700;
}
.cat-list span {
  font-size: 18px;
  font-weight: 700;
  color: white;
}
/* --------- */
#posts-listing {
  min-height: 200px;
}

.absolute-link {
  /* padding: 24px; */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  z-index: 10;
}
/* --------- */
.filter-label {
  font-size: 24px;
  font-weight: 700;
}
/* --------- */

@media screen and (min-width: 767px) {
  #posts-listing,
  #category-display {
    grid-template-columns: 1fr 1fr 1fr;
  }
  #top-nav-menu ul.sub-menu {
    grid-template-columns: 1fr 1fr;
  }
  .feature-img-container {
    height: 200px;
  }
}

/* loading */
.lds-roller {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0437ef;
  margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 63px;
  left: 63px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 68px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 71px;
  left: 48px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 71px;
  left: 32px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 68px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 63px;
  left: 17px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* -------------- */
#top-nav-menu,
.search-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-left: auto;
}
.search-container {
  padding-right: 8px;
  height: 34px;
}
#top-nav-menu {
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}
#search-post-btn {
  padding: 0 24px 0 16px;
  border-radius: 0 10rem 10rem 0;
  background: white;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 0em;
  text-align: center;
  border: none;
  cursor: pointer;
}
#search-post-btn svg {
  width: 20px;
  color: rgba(167, 92, 228, 1);
  transform: translateY(4px);
}

#search-post-name {
  border: 0;
  /* border-radius: 0 32px 72px 0; */
  border-top-left-radius: 10rem;
  border-bottom-left-radius: 10rem;
  padding-left: 16px;
}
#search-post-name:focus {
  outline: none;
}

/* Estilo para el botón del dropdown y el contenido del menú */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown svg {
  width: 24px;
  color: #0437ef;
  pointer-events: none;
  transition: transform 0.3s;
  transform: rotateZ(0);
  margin-bottom: -8px;
}

.dropdown-button {
  background-color: transparent;

  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  /* font-weight: 700; */
  color: #1e1d26;
}

.dropdown-content {
  display: none !important;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  z-index: 100;
}

.dropdown.active .dropdown-content {
  display: grid !important;
}
.dropdown.active svg {
  transform: rotateZ(180deg);
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #ddd;
}
/* ----- */
#filter-search {
  display: inline-block;
  padding: 4px 8px;
  background-color: #f1f1f1;
  border-radius: 90px;
}
#filter-search svg {
  width: 16px;
  color: red;
  cursor: pointer;
  border-radius: 10px;
}
#filter-search svg:hover {
  background-color: #2c61ec;
}
/* ------------------- */
button.all-categories {
  border: none;
  background: transparent !important;
  cursor: pointer;
  border-radius: 100px;
  padding: 8px 16px;
  color: black !important;
  font-size: 16px;
}
button.all-categories::after {
  content: "x";
  display: inline-block;
  margin-left: 12px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
}
button.all-categories.active::after {
  opacity: 1;
}

button.all-categories.active {
  background: rgba(167, 92, 228, 1) !important;
  color: black !important;
}
.post-page {
  border-radius: 50px;
}
.menu-item {
  padding: 10px 18px;
  position: relative;
}
#menu-menu-1,
ul.menu {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
}
ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 7px 7px rgba(0, 0, 0, 0.171);
}
.menu-item:hover .sub-menu {
  display: grid;
  z-index: 100;
}
