.masterclass-shortcode {
  max-width: 1200px;
  margin: 0 auto;
}

.masterclass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .masterclass-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .masterclass-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CARD ========== */
.mc-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.mc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ========== THUMBNAIL ========== */
.mc-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e8e4dc;
}

.mc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mc-card:hover .mc-thumb img {
  transform: scale(1.04);
}

/* Badge trạng thái */
.mc-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #FDF0E8;
  border: 1px solid #C8521A;
  color: #C8521A;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.mc-badge.hot {
  background: #fff3e0;
  border-color: #ffcc80;
  color: #e65100;
}

.mc-badge.coming {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}

/* ========== BODY ========== */
.mc-body {
  padding: 22px 24px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Meta row: 14 buổi | 40+ video | Có chứng chỉ */
.mc-meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12.5px;
  color: #6b6b6b;
  font-weight: 400;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mc-meta-item {
  white-space: nowrap;
}

.mc-meta-sep {
  margin: 0 10px;
  color: #ccc;
  font-size: 14px;
  line-height: 1;
}

/* Tiêu đề */
.mc-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  var(--ast-global-color-0);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.mc-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.mc-title a:hover {
  color: #333;
}

/* Mô tả */
.mc-excerpt {
  font-size: 13.5px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

/* Tags / Chủ đề */
.mc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.mc-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: #444;
  background: #f2f1ed;
  border: 1px solid #e4e2da;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ========== FOOTER ========== */
.mc-footer {
  padding: 16px 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f0eee9;
  margin-top: auto;
}

/* Trạng thái + ưu đãi */
.mc-status-wrap {
  flex: 1;
  min-width: 0;
}

.mc-status-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--ast-global-color-0);
  line-height: 1.2;
  margin-bottom: 3px;
}

.mc-uu-dai {
  font-size: 11.5px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA Button */
.mc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #E0DBD2;
  color: var(--ast-global-color-0);
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 24px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  transition:
    background 0.18s,
    transform 0.15s;
}

.mc-cta[data-type="primary"] {
    background: #111110;
    color: #fff;
    border-color: #111110;
}

.mc-cta[data-type="primary"]:hover {
    background: #3A3A3A;
    color: #fff;
}

.mc-cta:hover {
  background: #3A3A3A;
  color: white;
  transform: scale(1.02);
}
.mc-cta:active {
  transform: scale(0.98);
}

/* Variant xanh lam */
.mc-cta.primary {
  background: var(--ast-global-color-0);
  color: white;
}
.mc-cta.primary:hover {
  background: var(--ast-global-color-6);
  color: var(--ast-global-color-1);
}

/* ========== EMPTY STATE ========== */
.mc-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 48px;
  font-size: 15px;
}
