/* general blog styles */
.blog-article h1,
.blog-article h2,
.blog-article h3,
.blog-article h4,
.blog-article h5,
.blog h4,
.blog h5 {
  font-family: "Varela Round", sans-serif;
  color: #383c43;
}

.blog-article h1 {
  font-size: 2.5em;
  font-weight: 600;
}

.blog-article h2,
.blog h2 {
  font-size: 2em;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 40px;
  font-family: "Varela Round", sans-serif;
}

.blog-article h2 {
  margin-top: 35px;
  margin-bottom: 15px;
}

.blog-article h5,
.blog h5 {
  font-size: 1.2em;
  font-weight: 600;
}

.blog-article p, .blog-article li {
  font-family: "Varela Round", sans-serif;
  color: #383c43;
}

.blog-article span {
  font-family: "Varela Round", sans-serif;
}

.blog a:hover{
  text-decoration: none;
}

/* article conatiner */
.blog-article {
  margin-top: 70px;
}

/* title */
.article-title {
  margin-bottom: 50px;
}
.detail {
  font-size: 0.9em;
  color: #91819b;
}
.detail-sm {
  font-size: 80%;
  color: #91819b;
  padding-top: 3px;
}
.detail-top {
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* cover image */
.article-cover .cover-image {
  background-image: url("/img/talkii-cover.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 68vh;
  margin-bottom: 50px;
}

/* content */
.article-content {
  margin-bottom: 50px;
}

.article-links {
  font-weight: 600;
  margin-top: 30px;
}

/* recent articles */
.articles {
  /* padding-top: 50px; */
  padding-bottom: 40px;
}
.articles-light {
  padding-top: 50px;
  background-color: #f6f7fb;
}
.articles .articles-title {
  margin-bottom: 20px;
}
.articles-list-3 {
  /*min-height: 40vh; */
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 30px;
}

.span-3{
  grid-area: 1/1/span 1/span 3;
}

.articles-empty{
  text-align: center;
}

.jcard-article {
  /* width: 250px; */
  max-width: 250px;
  min-width: 250px;
  background-color: white;
  border-radius: 10px;
}

.jcard-article:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.jcard-article .jcard-article-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 160px;
  border-radius: 10px 10px 0 0;
}

.jcard-article .jcard-article-content {
  padding: 30px;
}

.jcard-article .jcard-article-content h5 {
  font-size: 1.2em;
  font-weight: 600;
}

/* blog dashboard */
.blog {
  color: #383c43;
  background-color: #f6f7fb;
  border-top: 1px solid #ebedf0;
  display: grid;
  justify-content: center;
  align-content: flex-start;
  padding-bottom: 50px;
}
.blog-fixed-w {
  width: 810px;
}
.blog h1 {
  color: #1193f5;
  font-size: 4em;
}
.blog .articles {
  margin-bottom: 40px;
  padding: 0;
}
.blog-categories-list {
  margin-top: 50px;
  margin-bottom: 30px;
  font-size: 0.9em;
}
.blog-categories-list a {
  color: #383c43;
  font-weight: 600;
}
.blog-categories-list a:hover {
  color: #1193f5;
}
.blog-categories-list a.active {
  font-weight: 600;
  color: #1193f5;
}
.articles-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
  gap: 20px;
}

.jcard-article-h {
  background-color: white;
  border-radius: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
}

#dashboard-blog.blog {
  color: #91819b;
  border-top: unset;
}

#dashboard-blog .jcard-article-h {
  grid-template-columns: auto 1fr auto;
}

#dashboard-blog .jcard-article-category {
  background-color: white;
  border-radius: 15px;
  width: 250px;
  display: grid;
  grid-template-columns: 1fr auto;
}

#dashboard-blog .jcard-article-h .jcard-article-image {
  height: 100%;
  width: 160px;
}

#dashboard-blog .jcard-article-btns {
  padding-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jcard-article-h .jcard-article-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 160px;
  width: 266px;
  border-radius: 10px 0 0 10px;
}

.jcard-article-h:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.jcard-article-h .jcard-article-content {
  padding: 30px;
  display: grid;
  align-content: center;
}

.jcard-article-h .jcard-article-content h5 {
  font-size: 1.2em;
  font-weight: 600;
}
/* ----- feautured article card ------------------------------------------------------------- */

.jcard-article-h.jcard-article-feature {
  grid-template-columns: 1fr 1fr;
}
.jcard-article-feature .jcard-article-image {
  height: 320px;
  width: auto;
  border-radius: 10px 0 0 10px;
}
.jcard-article-h.jcard-article-feature .jcard-article-content p {
  margin-bottom: 10px;
  color: #91819b;
}
.jcard-article-h.jcard-article-feature .jcard-article-content h4 {
  font-size: 1.5em;
  font-weight: 600;
}

.jpadding-blog {
  width: 810px;
}
/* add edit */
#add-edit-article .cover-image-preview-container{
display: grid;
justify-items: center;
}
#add-edit-article .cover-image-preview-bg{
  width: 530px;
  height: 300px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #ebedf0;
  margin-bottom: 30px;
  margin-top: 15px;
}

#add-edit-article .btn-container-center{
  margin-bottom: 20px;
}

/* ----- RESPONSIVE ------------------------------------------------------------- */

/* TABLET */

@media (max-width: 990px) {
  .jpadding-blog {
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
  }
  .articles-list-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-3{
    grid-area: 1/1/span 1/span 2;
  }

  .jcard-article {
    width: 100%;
    min-width: none;
    max-width: none;
  }
}

/* PHONE */

@media (max-width: 630px) {
  .jpadding-blog {
    padding-left: 30px;
    padding-right: 30px;
  }

  .articles-list-3 {
    grid-template-columns: repeat(1, 1fr);
  }
  .span-3{
    grid-area: 1/1/span 1/span 1;
  }
}

@media (max-width: 500px) {
  .jcard-article-h.jcard-article-feature {
    grid-template-columns: 1fr;
  }
  .jcard-article-feature .jcard-article-image {
    height: 250px;
    border-radius: 10px 10px 0 0;
  }
  .jcard-article-h {
    grid-template-columns: 1fr;
  }
  .jcard-article-h .jcard-article-image {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }
}