/* common style */
.main .article-content .title {
  margin-bottom: 20px;
}
.main .article-content ul {
  padding-left: 40px;
}
.main .article-content h1 {
  margin-top: 20px;
  color: #6ac5a2;
}
.main .article-content h2 {
  margin-top: 20px;
  color: #6ac5a2;
}
.main .article-content h3 {
  margin-top: 20px;
  color: #6ac5a2;
}
.main .article-content h4 {
  margin-top: 20px;
  color: #6ac5a2;
}
.main .article-content h5 {
  margin-top: 20px;
  color: #6ac5a2;
}
.main .article-content h6 {
  margin-top: 20px;
  color: #6ac5a2;
}
.main .article-content p {
  margin-top: 20px;
}
.main .article-content p img {
  max-width: 100%;
  text-align: center;
  height: auto;
}

/* highlight style */
.main .article-content .highlight .rouge-table .gutter .lineno {
  line-height: 20px;
}
.main .article-content .highlight .rouge-table .code span {
  line-height: 20px;
}

/* sidebar style */
@media screen and (min-width: 768px) {
  .page .main.enable-sidebar {
    padding-left: 260px;
  }
  .main .sidebar {
    box-sizing: border-box;
    position: absolute;
    left: 50px;
    top: 50px;
    width: 200px;
    background-color: #fff;
    padding: 0px;
    border: none;
  }
  .main .sidebar a {
    text-decoration: none;
  }
  .main .sidebar .sidebar-title {
    font-size: 1.2rem;
    padding-bottom: 8px;
    /* border-bottom: 2px solid #a5b80a; */
  }
  .main .sidebar img {
    max-width: 100%;
  }
  .main .sidebar .preference-product {
    padding: 10px;
    border: 1px solid #e0e0ce;
  }
  .main .sidebar .preference-product img {
    width: 100%;
    height: auto;
  }
  .main .sidebar .preference-product .product-name {
    font-size: 0.9rem;
    line-height: 1.2rem;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -o-line-clamp: 2;
    -moz-line-clamp: 2;
    -webkit-line-clamp: 2;
  }
  .main .sidebar .preference-product .goto-detail {
    margin-top: 10px;
    text-align: center;
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
    padding: 5px 0px;
    border-radius: 3px;
    border-bottom: 3px solid #ca9803;
    background-image: -webkit-linear-gradient(top, #ffc100, #ecb200);
  }
  .main .sidebar .preference-product .goto-detail:hover {
    border-bottom: 3px solid #ecb200;
    background-image: -webkit-linear-gradient(top, #ecb200, #ecb200);
  }
}
@media screen and (max-width: 767px) {
  .main .sidebar {
    border-top: 2px solid #a5b80a;
  }
  .main .sidebar a {
    text-decoration: none;
  }
  .main .sidebar .sidebar-title {
    padding-bottom: 8px;
    /* border-bottom: 2px solid #a5b80a; */
  }
  .main .sidebar img {
    max-width: 100%;
  }
  .main .sidebar .preference-product img {
    width: 100%;
    height: auto;
  }
  .main .sidebar .preference-product .product-name {
    font-size: 0.9rem;
    line-height: 1.2rem;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -o-line-clamp: 2;
    -moz-line-clamp: 2;
    -webkit-line-clamp: 2;
  }
  .main .sidebar .preference-product .goto-detail {
    margin-top: 10px;
    text-align: center;
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
    padding: 5px 0px;
    border-radius: 3px;
    border-bottom: 3px solid #ca9803;
    background-image: -webkit-linear-gradient(top, #ffc100, #ecb200);
  }
  .main .sidebar .preference-product .goto-detail:hover {
    border-bottom: 3px solid #ecb200;
    background-image: -webkit-linear-gradient(top, #ecb200, #ecb200);
  }
}

/* related-article style */
.main .related-article .list a {
  display: block;
  color: #a5b807;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s background-color;
}
.main .related-article .list a:hover {
  background-color: #a5b807;
  color: white;
}
.main .related-article .list a p:hover {
  padding-left: 7px;
}