/*▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ blog-list.html 파일의 스타일 ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼*/

.blog-list {
  background-color: var(--blog-bg);
  width: 100%;
}

.blog-list-body-wrapper {
  padding-top: 100px;
  padding-bottom: 85px;
  display: flex;
  flex-direction: column;
}

.blog-list-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.blog-card {
  width: 370px;
  height: 482px;
  margin-right: 37px;
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--blog-card-shadow);
  overflow: hidden;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
}

.blog-card:nth-child(3n) {
  margin-right: 0;
}

.blog-card-image {
  width: 100%;
  height: 209px;
  background-color: #F3F3F3;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.blog-card-content {
  padding: 32px 35px 22px 35px;
  height: 273px;
  position: relative;
}

.blog-card-title {
  color: var(--font-black);
  font-family: Pretendard;
  font-size: 24px;
  font-weight: 700;
  line-height: 29px;
  cursor: pointer;
  transition: var(--text-hovering);
}

.blog-card-title:hover {
  color: var(--font-orange);
}

.blog-card-date {
  color: var(--font-black);
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  margin-top: 24px;
}

.blog-card-tag-list {
  color: var(--font-orange);
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  position: absolute;
  left: 35px;
  bottom: 22px;
  padding-right: 35px;
  width: calc(100% - 35px);
}

.b-c-tag {
  color: var(--font-orange);
  cursor: pointer;
  margin-right: 10px;
}

.b-c-tag:hover {
  text-decoration: underline;
  font-weight: 700;
}

.blog-list-pagination {
  width: 1200px;
  margin: 20px auto 0 auto;
  height: 34px;
}

.pagination {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.pagination-btn {
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Pretendard;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  color: var(--font-black);
  border-radius: 5px;
  margin-right: 10px;
}

.pagination-btn:last-child {
  margin-right: 0;
}

.pagination-btn:hover {
  border: 1px solid var(--btn-box-bg-orange);
}

.pagination-left {
  background-image: url(../images/common/pagination-left.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.pagination-right {
  background-image: url(../images/common/pagination-right.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.pagination-active {
  background-color: var(--btn-box-bg-orange);
  color: var(--font-white);
}


/* 블로그관련 페이지에서만 푸터 재정의하여 다르게 보이도록 함 */
footer {
  background-color: var(--bg-btn-black);
  margin-bottom: 0;
}




@media screen and (min-width: 1920px) {

}

@media screen and (min-width: 1280px) and (max-width: 1919px) {

}

@media screen and (min-width: 768px) and (max-width: 1279px) {
  .blog-card {
    width: 320px;
    height: 417px;
    margin-left: inherit;
    margin-right: inherit;
    margin-bottom: 40px;
  }

  .blog-card-content {
    padding: 20px 25px 20px 25px;
    height: 236px;
    position: relative;
  }

  .blog-card-tag-list {
    left: 25px;
    bottom: 20px;
    padding-right: 25px;
    width: calc(100% - 25px);
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
  }

  .blog-card:nth-child(3n) {
    margin-right: inherit;
  }

  .blog-card:nth-last-child(odd) {
    margin-left: 24px;
  }

  .blog-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
  }

  .blog-card-date {
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
  }

  .blog-list-body {
    width: 751px;
  }

  .blog-list-pagination {
    width: 751px;
  }
  
  .blog-list-body-wrapper {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}


@media screen and (max-width: 767px) {
  .blog-card {
    width: 300px;
    height: 390px;
    margin-bottom: 40px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .blog-card-content {
    padding: 15px 15px 20px 15px;
    height: 236px;
    position: relative;
  }

  .blog-card-tag-list {
    left: 15px;
    bottom: 19px;
    padding-right: 15px;
    width: calc(100% - 15px);
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
  }
  
  .blog-card:nth-child(3n) {
    margin-right: 10px;
    margin-left: 10px;
  }

  .blog-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
  }

  .blog-card-date {
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
  }

  .blog-list-body {
    width: 100%;
    justify-content: space-evenly;
  }

  .blog-list-pagination {
    width: 100%;
  }
  
  .blog-list-body-wrapper {
    padding-top: 40px;
    padding-bottom: 50px;
  }
}
