/* * {
  margin: 0;
  padding: 0;
} */
#favoriteBtn.favorited {
  background: rgb(194, 77, 41);
}
a {
  text-decoration: none;
}
#toggleSidebar {
  display: none;
}
.main {
  background: var(--primary-bgc);
}
.main-wrap {
  padding: 0 100px;
}
.main-content {
  display: flex;
  max-width: 100%;
  height: 100%;
  margin: 1rem;
}
.main-wrap .content {
  width: 100%;
  padding: 1rem 1rem;
}
.category {
  background: var(--secondary-bgc);
  display: block;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-radius: 5px;
}
.categoryTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.category .categoryName {
  display: flex;
  align-items: center;
}
.category .categoryName img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 0.8rem;
}
.category h1 {
  font-size: 2em;
  color: var(--primary-txt);
}
.category button,
.editor-btn {
  display: inline-block;
  vertical-align: middle;
  border: none;
  outline: none;
  height: 40px;
  padding: 0.5rem 1rem;
  background: lightcoral;
  color: #fff;
  font-size: 1rem;
  line-height: 1.7;
  border-radius: 5px;
  cursor: pointer;
}
.editor-btn {
  background: brown;
}
.categoryContent {
  display: flex;
  font-size: 1rem;
  line-height: 1.5;
  padding-top: 1rem;
  margin-left: 65px;
}
.categoryContent p {
  color: rgb(129, 127, 127);
}
.postList-group {
  margin-top: 0.5rem;
  background-color: var(--secondary-bgc);
  padding: 1rem;
  border-radius: 5px;
}
.postList {
  display: grid;
  grid-template-columns: 4fr 1fr;
  align-items: center;
  border-bottom: 2px solid var(--border-clr);
  padding: 0.5rem 1.5rem 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}
.postList:last-child
{
  border:none;
  margin-bottom: -0.5rem;
}
.postList .postList-content {
  color: var(--primary-txt);
}
.postList .postList-content .top {
  display: flex;
  align-items: center;
  font-size: 0.8em;
  color: gray;
  margin-bottom: 0.5rem;
}
.postList-content .top > img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.3rem;
}
.postList .postList-content .top span {
  margin-left: 0.5rem;
}
.postList .postList-content h2 {
  padding-left: 0.3rem;
}
.postList .postList-content > p {
  font-size: 1rem;
  margin: 0.8rem;
}
.postList .postList-content .postList-btn {
  padding: 0.4rem;
  color: lightslategray;
}
.postList-content .postList-btn i {
  margin: 0 0.2rem;
}
.postList-content .postList-btn span {
  margin: 0 0.5rem;
}
.postList .postList-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 150px;
  padding: 0.5rem 0;
}
.postList .postList-img img {
  width: 98%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}
.content .postList-page {
  margin: 2rem;
  display: flex;
  justify-content: center;
}
.content .postList-page a {
  background: var(--secondary-bgc);
  color: var(--primary-txt);
  border: 2px solid lightgray;
  border-radius: 0.5rem;
  margin-right: 0.2rem;
  padding: 0.8rem;
  text-decoration: none;
}
.content .postList-page strong {
  background-color: #58b2dc;
  color: white;
  border-color: #58b2dc;
  border: 2px solid lightgray;
  border-radius: 0.5rem;
  margin-right: 0.2rem;
  padding: 0.8rem;
  text-decoration: none;
}
.content .postList-page .active {
  background: var(--secondary-bgc);
  color: var(--primary-txt);
  border: 2px solid lightgray;
  border-radius: 0.5rem;
  margin-right: 0.2rem;
  padding: 0.8rem;
  text-decoration: none;
}
.category .categoryName .back-btn {
  width: 50px;
  height: 100%;
  padding-block: 0.5rem;
  background: var(--secondary-bgc);
  color: #999;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  margin-right: 15px;
  transition: 0.3s;
}

.category .categoryName .back-btn:hover {
  background: #efefef;
  color: #111;
}
/* =============================================== */
/* ====================                ==================== */
/* ====================   media    ==================== */
/* ====================                ==================== */
/* =============================================== */
@media screen and (max-width: 631px) {
  .main-wrap {
    padding: 0;
  }
  .postList {
    grid-template-columns: 1fr;
  }
  .postList .postList-img {
    display: none;
  }
}
