/* ==========================================
   Main Blog Post Layout
========================================== */

.apf-layout {
  display: flex;
  flex-direction: column;
}

.apf-wrapper {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.apf-layout,
.apf-main,
.apf-sidebar,
.apf-posts-wrap {
  width: 100%;
}

.apf-sidebar {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: start;
  gap: 50px;
  background: none;
  border: none;
}

.apf-post:hover {
  box-shadow: none;
}

.apf-reset-btn {
  width: 0;
  display: none;
}

/* ==========================================
   Filters
========================================== */

.apf-filters {
  width: 60%;
  padding-right: 50px;
}

.apf-filters .apf-radio-custom {
  display: none;
}

.apf-check-label:has(input:checked) {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}

label:has(input[value="uncategorized"]) {
  display: none !important;
}

.apf-filter-items {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-right: 50px;
}

.apf-search-wrap {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

input.apf-search {
  background: none;
  border-bottom: 1px solid var(--yellow-orange);
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  outline: none;
}

input:focus.apf-search {
  box-shadow: none;
  border-bottom: 1px solid var(--green);
}

.apf-search-icon {
  display: flex;
  width: 24px;
  height: 25px;
  right: 0;
  bottom: 0;
  align-self: end;
  opacity: 1;
  justify-content: end;
  background: url("../images/Search.svg") center center / contain no-repeat;
}

.apf-search-icon img {
  display: none !important;
}

.apf-filter-label {
  font-size: 0;
}

.apf-filter-label::before {
  content: "Filter by:";
  font-size: 1.5rem;
  margin-bottom: 25px;
  font-weight: 400;
  color: #fff;
  text-transform: none;
}

.apf-search-wrap::before {
  content: "Search:";
  font-size: 1.5rem;
  margin-bottom: 25px;
  font-weight: 400;
  color: #fff;
  text-transform: none;
}

input.apf-search::placeholder {
  opacity: 0;
}

.apf-top-bar {
  display: none;
}

.apf-active-chips {
  display: none;
}

/* ==========================================
   Load More 
========================================== */

.apf-load-more {
  position: relative;
  display: inline-flex;
  align-items: end;
  background: none;
  gap: 24px;
  padding: 0 0 10px 0;
  font-family: basic-sans, sans-serif;
  color: var(--white) !important;
  font-size: 1.3rem;
  text-decoration: none;
  text-transform: uppercase;
  width: fit-content;
}

.apf-load-more:hover {
  background: none;
  opacity: 1;
  transform: translateY(0px);
}

.apf-load-more::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--orange) 100%);
  transition: background 0.35s ease;
  transition: width 0.35s ease;
}

.apf-load-more:hover::before {
  background: linear-gradient(
    90deg,
    var(--green) 0%,
    var(--orange) 33%,
    var(--red) 96%
  );
  width: 100%;
}

.apf-load-more-wrap {
  margin-top: 100px;
  margin-bottom: 90px;
}

.apf-check-label {
  font-family: "Geist Mono", monospace !important;
  font-size: 1rem;
  color: var(--yellow-orange) !important;
  text-decoration: underline;
}

/* ==========================================
   Posts
========================================== */

.apf-posts {
  column-gap: 60px;
  row-gap: 100px;
}

.apf-post {
  position: relative;
  isolation: isolate;
  border: none;
  background: none;
}

.apf-post-thumbnail {
  overflow: hidden;
  position: relative;
  height: auto;
  padding-left: 30px;
  padding-bottom: 20px;
}

.apf-post-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 549/282;
  border-radius: 30px;
}

.apf-post-thumbnail::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0px;
  bottom: 0px;
  width: 100%;
  height: 100%;
  background: url("../images/frame.svg") left bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.apf-post:hover {
  transform: none;
}
.apf-post:hover .apf-post-thumbnail img {
  box-shadow: none;
  transform: none;
}
.apf-post-thumbnail img:hover {
  box-shadow: none;
  transform: none;
}

.apf-post-body {
  background: none;
  padding: 25px 0 0 20px;
  flex: 0;
}

p.single-post-category {
  margin-bottom: 0;
}

h2.apf-post-title a,
.apf-post-title {
  font-size: 1.625rem !important;
  font-weight: 400 !important;
  line-height: 125% !important;
  letter-spacing: 0.26px !important;
  margin-bottom: 33px;
  margin-top: 5px;
}

h2.apf-post-title a:hover,
.apf-post-title:hover {
  color: #fff;
}

p.apf-post-category {
  font-family: "Geist Mono", monospace !important;
  font-size: 1rem;
  color: var(--yellow-orange) !important;
}

.apf-read-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-family: basic-sans, sans-serif;
  color: var(--green) !important;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase !important;
  width: fit-content;
}

.apf-read-more::after {
  content: "";
  left: 0;
  width: 36px;
  height: 18px;
  /* transform:translateY(-50%); */
  flex-shrink: 0;
  background: url("../images/Arrow-default.svg") center/contain no-repeat;
  transition: background 0.3s ease;
  transition: width 0.3s ease;
}

.apf-read-more:hover {
  color: var(--green) !important;
}

.apf-read-more:hover::after {
  background: url("../images/Arrow-hover.svg") center/contain no-repeat !important;
  width: 53px;
  height: 18px;
}

.apf-post-excerpt {
  display: none;
}

/* ==========================================
   Tablet Styles
========================================== */

@media (max-width: 1023px) {
  .apf-filter-items {
    padding-right: 0;
  }
}

/* ==========================================
   Mobile Styles
========================================== */

@media (max-width: 768px) {
  aside.apf-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
  }
  .apf-filter-items {
    flex-direction: column;
    justify-content: center;
  }
  .apf-filters {
    width: 100%;
    padding-right: 0px;
  }

  .apf-search-wrap {
    width: 100%;
  }

  .apf-post-thumbnail {
    overflow: hidden;
    position: relative;
    height: auto;
    padding-left: 10px;
    padding-bottom: 10px;
  }
  .apf-post-body {
    padding-left: 10px;
  }

  .apf-no-posts {
    padding-left: 20px;
  }
}
