.blog {
  padding: 0 4rem;
  margin-bottom: 16.4rem;
}

.blog__content {
  display: flex;
  gap: 15rem;
}

.blog__filter {
  max-width: 300px;
  width: 100%;
}

.blog__filter-title {
  margin-bottom: 3rem;
  color: var(--color-primary);
  font-weight: 500;
}

.blog__categories-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-white);
  margin-bottom: 2rem;
}

.blog__categories-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-primary);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog__categories-arrow i {
  font-size: 1.2rem;
  transform: rotate(-135deg);
}

.blog__categories-content {
  display: none;
  flex-direction: column;
  gap: 1.3rem;
  transition: var(--transition);
  height: 0px;
}

.blog__categories-content.active {
  display: flex;
  height: auto;
  margin-bottom: 3rem;
}

.blog__categories-content label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.blog__tag {
  color: var(--color-white);
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-white);
  border-radius: 2rem;
}

.blog__carts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blog__tag input {
  display: none;
}

.blog__card {
  display: flex;
  gap: 5.1rem;
}

.blog__card-image {
  max-width: 31.4rem;
  width: 100%;
  height: 20.5rem;
}

.blog__card-content {
  flex: 1;
}

.blog__card-date {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.blog__card-title {
  max-width: 34.5rem;
  width: 100%;
  margin-bottom: 1.2rem;
  color: var(--color-white);
}

.blog__card-category {
  color: var(--color-primary);
  margin-bottom: 6.5rem;
}

.blog__card-tags {
  display: flex;
  gap: 1rem;
  /* flex-wrap: wrap; */
  max-width: 34.5rem;
  width: 100%;
  overflow-x: scroll;
}

.blog__card-tags::-webkit-scrollbar,
.blog__tags::-webkit-scrollbar {
  height: 4px;
}

.blog__card-tags::-webkit-scrollbar-track,
.blog__tags::-webkit-scrollbar-track {
  background-color: transparent; /* Set the background color of the track */
}

.blog__card-tags::-webkit-scrollbar-thumb,
.blog__tags::-webkit-scrollbar-thumb {
  background-color: #888; /* Set the color of the thumb */
  border-radius: 4px; /* Round the corners of the thumb */
}

.blog__card-tags::-webkit-scrollbar-thumb:hover,
.blog__tags::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Change the color of the thumb on hover */
}

@media screen and (max-width: 1250px) {
  .blog__content {
    gap: 5rem;
  }

  .blog__card {
    gap: 3rem;
  }

  .blog__card-category {
    margin-bottom: 4rem;
  }

  .blog__card-tags {
    gap: 1rem;
  }
}

@media screen and (max-width: 1150px) {
  .blog__card {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .blog {
    padding: 0 1rem;
    margin-bottom: 10rem;
  }

  .blog__content {
    flex-direction: column;
  }

  .blog__tags {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: scroll;
  }

  .blog__tag {
    min-width: max-content;
  }

  .blog__filter {
    max-width: 100%;
  }

  .blog__card-image {
    max-width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 480px) {
  .blog__card-tags::-webkit-scrollbar,
  .blog__tags::-webkit-scrollbar {
    height: 0px;
  }
}
