:root{
  --amora-serif:"Playfair Display",serif;
  --amora-ink:#3C1F1A;
  --amora-line:rgba(60,31,26,.10);
  --amora-gold:#F1BF50;
}

/* Title/heading dùng Playfair, body bạn đang muốn all site = playfair thì làm trong site.css/ style.css.
   Ở đây chỉ đảm bảo block tapchi đúng font. */
.amora-tapchi{ font-family:var(--amora-serif); padding:28px 0 40px; }

.amora-tapchi__header{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto 18px;
}

.amora-tapchi__crumb{ font-size:14px; opacity:.65; margin-bottom:10px; }
.amora-tapchi__crumb a{ color:inherit; text-decoration:none; }
.amora-tapchi__crumb a:hover{ text-decoration:underline; }

.amora-tapchi__title{
  font-size:clamp(36px,4.5vw,64px);
  line-height:1.05;
  margin:0;
}
.amora-tapchi__sub{
  margin-top:8px;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.55;
}

.amora-tapchi__tabs{
  margin-top:16px;
  display:flex; gap:10px;
  overflow-x:auto;
  padding:12px 0 14px;
  border-top:1px solid var(--amora-line);
  border-bottom:1px solid var(--amora-line);
  -webkit-overflow-scrolling:touch;
}
.amora-tapchi__tab{
  white-space:nowrap;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  color:var(--amora-ink);
  background:transparent;
  font-size:22px;
}
.amora-tapchi__tab.is-active{
  background:rgba(241,191,80,.18);
  border-color:rgba(241,191,80,.45);
}

.amora-tapchi__grid{
  width:min(1180px,calc(100% - 32px));
  margin:22px auto 0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
}
@media (max-width:1024px){ .amora-tapchi__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ .amora-tapchi__grid{ grid-template-columns:1fr; } }

.amora-tapchi__card{
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.35);
  border:1px solid rgba(60,31,26,.08);
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}
.amora-tapchi__card-link{ display:block; color:inherit; text-decoration:none; }

.amora-tapchi__thumb{ position:relative; aspect-ratio:16/9; overflow:hidden; }
.amora-tapchi__thumb img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform .35s ease; }
.amora-tapchi__card:hover .amora-tapchi__thumb img{ transform:scale(1.06); }
.amora-tapchi__thumb-fallback{ width:100%; height:100%; background:linear-gradient(120deg,rgba(60,31,26,.08),rgba(241,191,80,.08)); }

.amora-tapchi__date{
  position:absolute; left:14px; top:14px;
  width:58px; height:58px;
  display:grid; place-items:center;
  text-align:center;
  font-size:18px; font-weight:600;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  border:2px solid rgba(60,31,26,.18);
  box-shadow:0 10px 18px rgba(0,0,0,.10);
}
.amora-tapchi__date span{ display:block; font-size:12px; opacity:.75; margin-top:-2px; }

.amora-tapchi__body{ padding:14px 16px 16px; }

.amora-tapchi__card-title{
  font-size:20px; line-height:1.25; font-weight:600;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:calc(1.25em * 2);
}

.amora-tapchi__card-excerpt{
  margin-top:8px;
  font-size:15px; line-height:1.6;
  opacity:.8;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:calc(1.6em * 3);
}

.amora-tapchi__pagination{
  width:min(1180px,calc(100% - 32px));
  margin:26px auto 0;
  display:flex; gap:10px;
  align-items:center; justify-content:center;
  flex-wrap:wrap;
}
.amora-tapchi__page{
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  color:var(--amora-ink);
  border:1px solid rgba(60,31,26,.12);
  background:rgba(255,255,255,.35);
}
.amora-tapchi__page:hover{ border-color:rgba(241,191,80,.45); }
.amora-tapchi__page.is-active{ background:rgba(241,191,80,.18); border-color:rgba(241,191,80,.55); }
.amora-tapchi__page.is-disabled{ opacity:.4; pointer-events:none; }
.amora-tapchi__dots{ opacity:.6; }