/* Shortcode: [kt_post_list] */

.kt-post-list-wrap{ width:100%; }

.kt-post-list{
  display:grid;
  gap:22px;
  align-items:start;
}

@media (min-width:1025px){
  .kt-post-list{ grid-template-columns:repeat(var(--kt-post-columns,3),minmax(0,1fr)); }
}

@media (min-width:641px) and (max-width:1024px){
  .kt-post-list{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:640px){
  .kt-post-list{ grid-template-columns:repeat(1,minmax(0,1fr)); }
}

.kt-post-item{
  text-align:center;
}

.kt-post-thumb{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  text-decoration:none;

  width:150px;
  height:150px;
  border-radius:50%;
  overflow:hidden;

  box-shadow:0 10px 26px rgba(0,0,0,.16);
  background:#fff;

  margin:0 auto 12px;
}

.kt-post-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.kt-post-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:0 !important;
  box-shadow:none;
  background:transparent;
  display:block;
}

.kt-post-img--placeholder{
  width:100%;
  height:100%;
  background:rgba(0,0,0,.05);
}

.kt-post-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;

  color:#fe8601;
  font-weight:700;
  line-height:1.35;
  text-decoration:none;

  margin:0 auto;
  min-height:calc(1.35em * 2);
  max-width:340px;
}

.kt-post-title:hover{ opacity:.88; }

/* Divider: logo lăn tạo gạch ngang */
.kt-post-divider{
  --kt-logo-size:16px;
  position:relative;
  height:22px;
  margin:12px auto 0;
  max-width:260px;
  overflow:hidden;
}

.kt-post-divider-line{
  position:absolute;
  left:0;
  top:50%;
  height:2px;
  width:0;
  background:rgba(0,0,0,.16);
  border-radius:2px;
  transform:translateY(-50%);
  animation:ktPostLineGrow 3s linear infinite;
}

.kt-post-divider-logo{
  position:absolute;
  top:50%;
  left:0;
  width:var(--kt-logo-size);
  height:var(--kt-logo-size);
  transform:translateY(-50%);
  animation:ktPostLogoRoll 3s linear infinite;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.18));
}

@keyframes ktPostLogoRoll{
  0%{ left:0; transform:translateY(-50%) rotate(0deg); }
  100%{ left:calc(100% - var(--kt-logo-size)); transform:translateY(-50%) rotate(360deg); }
}

@keyframes ktPostLineGrow{
  0%{ width:0; }
  100%{ width:calc(100% - var(--kt-logo-size)); }
}

@media (prefers-reduced-motion:reduce){
  .kt-post-divider-logo,
  .kt-post-divider-line{ animation:none; }
  .kt-post-divider-line{ width:100%; }
  .kt-post-divider-logo{ left:50%; transform:translate(-50%,-50%); }
}

/* View more */
.kt-post-more{
  margin-top:22px;
  text-align:center;
}

.kt-post-more-link,
.kt-post-more-btn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  background:#fe8601;
  border:1px solid #fe8601;
  color:#fff;

  font-weight:700;
  text-decoration:none;
  padding:10px 22px;
  border-radius:999px;
  cursor:pointer;
}

.kt-post-more-link:hover,
.kt-post-more-btn:hover{ opacity:.92; }

.kt-post-more-btn.is-loading{ opacity:.7; cursor:wait; }

/* Pagination */
.kt-post-pagination{ margin-top:26px; }
.kt-post-pagination ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.kt-post-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.14);
  text-decoration:none;
  font-weight:700;
  color:#111;
  background:#fff;
}

.kt-post-pagination .page-numbers:hover{
  border-color:#fe8601;
  color:#fe8601;
}

.kt-post-pagination .page-numbers.current{
  background:#fe8601;
  border-color:#fe8601;
  color:#fff;
}

/* Archive wrapper (category template) */
.kt-archive-service{ padding:22px 0 56px; }
.kt-archive-service .kt-archive-inner{ max-width:1180px; margin:0 auto; padding:0 18px; }
.kt-archive-service .kt-archive-header{ text-align:center; margin:0 0 18px; }
.kt-archive-service .kt-archive-title{ margin:0; font-size:34px; font-weight:800; letter-spacing:.2px; }
.kt-archive-service .kt-archive-desc{ margin:10px auto 0; max-width:820px; color:rgba(0,0,0,.72); }

@media (max-width:640px){
  .kt-archive-service .kt-archive-title{ font-size:26px; }
}
