.ast-container,
.insights-container,
.featured-container,
.post-list-container {
  max-width: 100%;
  width: 100%;
  padding: 0;
}
#page {
  background-color: #f4f2f1;
}
header {
  background-color: #212322;
  color: #d7d2cb;
}

.site-header {
  border-bottom: solid 2px #706e6a !important;
}

.header-other img {
  filter: invert(1);
}
body:not(.page-template-template-home) [data-section="section-hb-html-1"] span {
  color: #d7d2cb !important;
}
.featured-container {
  background-color: #212322;
}
.featured-post {
  margin-top: 3.5rem;
}
.feature-container-inner,
.related-posts-grid {
  max-width: 1400px;
  margin: auto;
  padding: 75px 2rem;
  position: relative;
}

.feature-container-inner h1 {
  font-size: 48px;
  color: #d7d2cb;
  text-align: left;
  font-weight: 400;
  margin-bottom: 1rem;
}
.taglist {
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-end;
}
.taglist a {
  outline: none;
  border-bottom: 1px solid #fff;
  width: 100%;
  text-align: left;
  color: #d7d2cb;
  line-height: 50px;
}
.featured-post-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 30px;
  margin-top: 2rem;
}
.featured-post-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;

}
.featured-post-layout > div {
  width: 50% !important;
}
.featured-post-tags span {
  font-size: 24px;
  color: #d7d2cb;
  border-bottom: 1px solid #d7d2cb;
  padding-bottom: 5px;
  display: block;
  width: max-content;
}
.featured-post-text p {
  margin-bottom: 0px;
}
.featured-post-text h2 a {
  color: #d7d2cb;
  outline: none;
  font-size: 48px;
  font-weight: 400;
}
.featured-post-text p {
  font-size: 16px;
  color: #d7d2cb;
}

.featured-post-text > a {
  display: flex;
  width: 120px;
  height: 45px;
  text-align: center;
  outline: none;
  font-size: 14px;
  border: 1px solid #d7d2cb;
  color: #d7d2cb;
  align-items: center;
  justify-content: center;
}

.featured-post-text > a:hover {
  background-color: #d7d2cb;
  color: #212322;
}
.related-posts-grid {
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
}
.related-post-card {
  width: calc(33.33% - 20px);
  height: 400px;
  border-bottom: 1px solid #918f8c;
}
.related-post-card h3:hover {
  text-decoration: underline;
}

.related-post-card h3 a {
  color: #212322;
  margin-top: 0.8rem;
  display: block;
  outline: none;
  font-size: 28px;
  font-weight: 500;
}
#load-more-posts {
  width: 120px;
  height: 45px;
  background-color: #f4f2f1;
  color: #212322;
  text-align: center;
  margin: -2rem auto 2rem;
  display: block;
  padding: 0;
  border: 1px solid #212322;
  border-radius: 0;
  z-index: 10;
  position: relative;
}

#load-more-posts:hover {
  background-color: #212322;
  color: #f4f2f1;
}

.mobile-filter {
  display: none;
}
@media screen and (max-width: 921px) {
  .featured-post-layout {
    flex-direction: column;
  }

  .featured-post-layout > div {
    width: 100% !important;
  }

  .featured-post-text {
    gap: 20px;
  }

  .related-post-card {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 768px) {
  .mobile-filter {
    display: block;
  }
  .taglist {
    z-index: 110;
    width: 100%;
    position: fixed;
    bottom: -100%; /* Fully off-screen */
    left: 0;
    display: flex; /* Keep it in the layout for styling but hidden off-screen */
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    background-color: #f4f2f1;
    height: 50%;
    flex-direction: column;
    padding: 50px;
    transform: translateY(100%); /* Slide out of view */
    transition: transform 0.5s ease, opacity 0.5s ease; /* Smooth transitions */
    opacity: 0; /* Invisible */
    pointer-events: none; /* Prevent interaction when hidden */
  }

  /* Active state */
  .taglist.active {
    transform: translateY(0); /* Slide into view */
    opacity: 1; /* Fully visible */
    pointer-events: auto; /* Enable interaction */
    bottom: 0;
  }

  .taglist .filterCloseBtn {
    position: absolute;
    top: 50px;
    right: 50px;
    filter: invert(1);
    cursor: pointer;
  }
  .taglist a,
  .filterBtn,
  .filterBtn:focus {
    outline: none;
    border-bottom: 1px solid #212322;
    width: max-content;
    max-width: 259px;
    text-align: left;
    font-size: 18px;
    display: block;
    color: #212322;
    cursor: pointer;
    padding: 10px 30px;
  }
  .taglist a {
    padding: 10px 0;
    width: 100%;
    line-height: 100%;
  }
  .filterBtn,
  .filterBtn:focus {
    color: #d7d2cb;
    background-color: #212322;
    border: 1px solid #d7d2cb;
    position: absolute;
    top: 70px;
    right: 30px;
    border-radius: 0px !important;
  }
  .filterBtn:hover {
    color: #212322;
    background-color: #d7d2cb;
    border: 1px solid #212322;
    position: absolute;
    top: 70px;
    right: 30px;
  }
  .ast-separate-container #content .ast-container {
    padding-left: 0;
    padding-right: 0;
  }
  .related-post-card {
    display: flex;
    flex-direction: column !important;
    width: calc(100%);
    flex-direction: row;
    height: max-content;
    gap: 30px;
    padding-bottom: 30px;
  }
  .related-post-card > div,
  .related-post-card > h3 {
    width: 100%;
  }

  .related-post-card h3 a {
    margin-top: 0;
    font-size: 20px;
  }
}
