/* =============================================
   SHORTCODE: Tin Xo So Latest Posts
   Usage: [tin_xo_so_latest]
   ============================================= */

.txs-section {
  padding: 0;
}

/* Header row */
.txs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.txs-title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #FFD24B;
  text-transform: uppercase;
  margin: 0;
}
.txs-viewall {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  color: #E6DACD;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.txs-viewall:hover {
  color: #FFB800;
}

/* Grid */
.txs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card */
.txs-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}
.txs-card-thumb {
  width: 100%;
  height: 209px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: #2a1200;
}
.txs-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.txs-card-body {
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
}
.txs-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.txs-card-date {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: #E6DACD;
  margin-top: 4px;
}
.txs-card-date svg {
  vertical-align: -2px;
  margin-right: 4px;
}
.txs-card-excerpt {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: #E6DACD;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .txs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .txs-card-thumb {
    height: 209px;
  }
}
