/* 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(3,minmax(0,1fr)); }
  .kt-post-list--cols-1{grid-template-columns:repeat(1,minmax(0,1fr));}
  .kt-post-list--cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
  .kt-post-list--cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
  .kt-post-list--cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
  .kt-post-list--cols-5{grid-template-columns:repeat(5,minmax(0,1fr));}
  .kt-post-list--cols-6{grid-template-columns:repeat(6,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;
  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; }
}

/* ===== Danh mục cha: lưới danh mục con ===== */
.kt-archive-service--parent{
  padding-top:32px;
  background:
    radial-gradient(circle at 9% 10%, rgba(254,134,1,.06), transparent 27%),
    linear-gradient(180deg,#fff 0%,#fbfdff 100%);
}

.kt-archive-service--parent .kt-archive-header{
  margin-bottom:30px;
}

.kt-child-category-section{
  width:100%;
}

.kt-child-category-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
}

.kt-child-category-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  padding:26px 24px 22px;
  border:1px solid rgba(15,41,66,.10);
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 38px rgba(15,41,66,.08);
  overflow:hidden;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.kt-child-category-card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:4px;
  background:linear-gradient(90deg,#00478e 0%,#fe8601 100%);
  opacity:.88;
}

.kt-child-category-card:hover{
  transform:translateY(-6px);
  border-color:rgba(254,134,1,.32);
  box-shadow:0 22px 50px rgba(15,41,66,.14);
}

.kt-child-category-media{
  position:relative;
  display:block;
  width:168px;
  height:168px;
  margin:0 auto 20px;
  padding:5px;
  border-radius:50%;
  background:linear-gradient(145deg,#00478e 0%,#fe8601 100%);
  box-shadow:0 14px 30px rgba(15,41,66,.18);
  text-decoration:none;
  flex:0 0 auto;
}

.kt-child-category-media::after{
  content:"";
  position:absolute;
  inset:-8px;
  border:1px solid rgba(254,134,1,.20);
  border-radius:50%;
  pointer-events:none;
  transition:transform .25s ease,border-color .25s ease;
}

.kt-child-category-card:hover .kt-child-category-media::after{
  transform:scale(1.04);
  border-color:rgba(254,134,1,.45);
}

.kt-child-category-media img,
.kt-child-category-placeholder{
  display:flex;
  width:100%;
  height:100%;
  border-radius:50%;
  overflow:hidden;
}

.kt-child-category-media img{
  object-fit:cover;
  background:#f3f4f6;
  transition:transform .35s ease;
}

.kt-child-category-card:hover .kt-child-category-media img{
  transform:scale(1.06);
}

.kt-child-category-placeholder{
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#eef6fc 0%,#fff4e8 100%);
  color:#fe8601;
}

.kt-child-category-placeholder svg{
  width:66px;
  height:66px;
}

.kt-child-category-body{
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
  text-align:center;
}

.kt-child-category-name{
  margin:0;
  font-size:19px;
  font-weight:800;
  line-height:1.35;
}

.kt-child-category-name a{
  color:#fe7200;
  text-decoration:none;
  transition:color .2s ease;
}

.kt-child-category-name a:hover{
  color:#00478e;
}

.kt-child-category-description{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:10px 0 18px;
  color:#667085;
  font-size:14px;
  line-height:1.65;
}

.kt-child-category-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:auto;
  padding-top:15px;
  border-top:1px solid rgba(15,41,66,.09);
}

.kt-child-category-count{
  color:#7b8794;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}

.kt-child-category-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#00478e;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}

.kt-child-category-link span{
  color:#fe8601;
  font-size:18px;
  line-height:1;
  transition:transform .2s ease;
}

.kt-child-category-link:hover{
  color:#fe7200;
}

.kt-child-category-link:hover span{
  transform:translateX(4px);
}

@media (max-width:1024px){
  .kt-child-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
  }
}

@media (max-width:640px){
  .kt-archive-service--parent{
    padding-top:24px;
  }

  .kt-child-category-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .kt-child-category-card{
    padding:22px 18px 18px;
    border-radius:20px;
  }

  .kt-child-category-media{
    width:146px;
    height:146px;
    margin-bottom:18px;
  }

  .kt-child-category-name{
    font-size:18px;
  }

  .kt-child-category-footer{
    align-items:flex-end;
  }
}

/* Lưới danh mục con khi được gọi bên trong Page/Elementor qua [kt_gui_hang_list] */
.kt-page-child-categories{
  width:100%;
  margin:28px auto 0;
}

.kt-page-child-categories .kt-child-category-grid{
  align-items:stretch;
}

@media (max-width:640px){
  .kt-page-child-categories{
    margin-top:20px;
  }
}
