/* Tutor Certificate Showcase 1.1 — các quy tắc nằm trong .tcg-showcase, không ảnh hưởng theme. */
.tcg-showcase {
  --tcg-brand: #fd3318;
  --tcg-brand-dark: #de260f;
  --tcg-ink: #1d2330;
  --tcg-muted: #677184;
  --tcg-border: #e8e9ed;
  --tcg-verified: #16a36b;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 0 48px;
  color: var(--tcg-ink);
  font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  box-sizing: border-box;
}
.tcg-showcase *, .tcg-showcase *::before, .tcg-showcase *::after { box-sizing: border-box; }
.tcg-showcase button { font: inherit; cursor: pointer; }
.tcg-showcase [hidden] { display: none !important; }

/* Tiêu đề, lời nhắn và chữ ký — không dùng hero, không hiển thị thống kê. */
.tcg-introduction { margin: 0 0 35px; }
.tcg-showcase .tcg-heading {
  margin: 0 0 20px;
  padding: 0;
  color: var(--tcg-ink);
  font-size: clamp(29px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.9px;
}
.tcg-showcase .tcg-quote {
  position: relative;
  max-width: 1040px;
  margin: 0;
  padding: 3px 0 3px 23px;
  border: 0;
  border-left: 3px solid var(--tcg-brand);
  background: transparent;
  color: #4f5866;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 400;
  line-height: 1.95;
}
.tcg-showcase .tcg-quote p {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  font-style: normal;
  color: inherit;
}
.tcg-showcase .tcg-signature {
  margin: 10px 0 0;
  padding: 0;
  color: var(--tcg-ink);
  text-align: right;
  font-size: 14px;
  line-height: 1.8;
  font-style: italic;
  font-weight: 700;
}

/* Tab đơn giản: chỉ tên khóa học, không số lượng. */
.tcg-toolbar { margin: 0 0 17px; }
.tcg-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 8px;
}
.tcg-showcase .tcg-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  margin: 0;
  padding: 10px 17px;
  border: 1px solid #e4e6eb;
  border-radius: 14px;
  background: #fff;
  color: #3f4959;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: color .16s, background-color .16s, border-color .16s;
}
.tcg-showcase .tcg-tab:hover { color: var(--tcg-brand); background: #fff7f5; border-color: #ffc3ba; }
.tcg-showcase .tcg-tab--active,
.tcg-showcase .tcg-tab--active:hover {
  color: #fff;
  background: var(--tcg-brand);
  border-color: var(--tcg-brand);
}
.tcg-tabs__loading { padding: 8px 0; color: var(--tcg-muted); font-size: 13px; }
.tcg-showcase .tcg-tab:focus-visible,
.tcg-showcase .tcg-card__visual:focus-visible,
.tcg-showcase .tcg-more:focus-visible,
.tcg-showcase .tcg-error button:focus-visible,
.tcg-showcase .tcg-lightbox button:focus-visible {
  outline: 3px solid #ff927f;
  outline-offset: 3px;
}
.tcg-showcase .tcg-status { min-height: 18px; margin: 0 0 17px; color: #8a929e; font-size: 12px; line-height: 1.55; }

/* Lưới chứng chỉ. */
.tcg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tcg-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tcg-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(24,35,51,.045);
  transition: box-shadow .2s ease, transform .2s ease;
}
.tcg-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(24,35,51,.10); }
.tcg-showcase .tcg-card__visual {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #f6f7f9;
  box-shadow: none;
  text-align: center;
  overflow: hidden;
}
.tcg-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.43 / 1;
  object-fit: contain;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17,33,50,.07);
}
.tcg-card__zoom {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 6px);
  opacity: 0;
  border-radius: 10px;
  padding: 9px 13px;
  white-space: nowrap;
  background: var(--tcg-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: opacity .2s, transform .2s;
}
.tcg-card:hover .tcg-card__zoom, .tcg-card__visual:focus-visible .tcg-card__zoom { opacity: 1; transform: translate(-50%, 0); }
.tcg-card__details { display: flex; align-items: flex-start; gap: 11px; min-height: 108px; padding: 17px 16px 19px; }
.tcg-card__icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tcg-verified);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.tcg-card__texts { min-width: 0; }
.tcg-card__overline { display: block; margin-bottom: 4px; color: var(--tcg-verified); font-size: 10px; font-weight: 700; letter-spacing: .35px; line-height: 1.6; }
.tcg-showcase .tcg-card__title { margin: 0 0 6px; color: var(--tcg-ink); font-size: 14px; line-height: 1.55; font-weight: 700; letter-spacing: 0; }
.tcg-card__date { display: block; color: #8a929e; font-size: 11px; line-height: 1.6; }

/* Trạng thái, nút xem thêm. */
.tcg-actions { display: flex; justify-content: center; margin-top: 29px; }
.tcg-showcase .tcg-more, .tcg-showcase .tcg-error button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  margin: 0;
  padding: 11px 22px;
  border: 1px solid var(--tcg-brand);
  border-radius: 14px;
  background: #fff;
  color: var(--tcg-brand);
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  transition: color .16s, background-color .16s;
}
.tcg-showcase .tcg-more:hover, .tcg-showcase .tcg-error button:hover { color: #fff; background: var(--tcg-brand); }
.tcg-more:disabled { opacity: .6; cursor: wait; }
.tcg-empty { grid-column: 1 / -1; padding: 55px 18px; text-align: center; border: 1px dashed #e3e5e9; border-radius: 14px; background: #fafbfc; }
.tcg-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 9px; border-radius: 50%; background: var(--tcg-verified); color: #fff; font-size: 20px; font-weight: 700; }
.tcg-showcase .tcg-empty h4 { margin: 0 0 8px; font-size: 17px; color: var(--tcg-ink); }
.tcg-showcase .tcg-empty p { margin: 0; font-size: 13px; color: var(--tcg-muted); }
.tcg-error { padding: 20px; margin: 12px 0; text-align: center; border-radius: 14px; border: 1px solid #ffcfca; background: #fff8f7; }
.tcg-showcase .tcg-error p { margin: 0 0 14px; color: #993024; }
.tcg-skeleton { padding: 12px; background: #fff; border: 1px solid #e8edf2; border-radius: 14px; overflow: hidden; }
.tcg-skeleton__image, .tcg-skeleton__line { background: linear-gradient(100deg, #edf0f3 10%, #f9fafc 30%, #edf0f3 55%); background-size: 240% 100%; animation: tcg-shimmer 1.5s infinite linear; }
.tcg-skeleton__image { aspect-ratio: 1.43; border-radius: 4px; }
.tcg-skeleton__line { height: 11px; margin: 20px 8px 0; border-radius: 5px; }
.tcg-skeleton__line--short { width: 48%; height: 10px; margin-top: 11px; margin-bottom: 9px; }
@keyframes tcg-shimmer { to { background-position-x: -240%; } }

/* Popup chỉ để xem ảnh lớn; bỏ liên kết “Mở ảnh gốc”. */
body.tcg-lock-scroll { overflow: hidden; }
.tcg-lightbox { position: fixed; inset: 0; z-index: 999999; display: flex; justify-content: center; align-items: center; padding: 22px; }
.tcg-lightbox__backdrop { position: absolute; inset: 0; background: rgba(14,19,27,.88); backdrop-filter: blur(5px); }
.tcg-lightbox__panel { display: flex; position: relative; flex-direction: column; width: min(1100px, 100%); max-height: calc(100dvh - 44px); border-radius: 14px; background: #19212d; color: #f7fbfb; overflow: hidden; box-shadow: 0 18px 80px rgba(0,0,0,.45); }
.tcg-lightbox__top, .tcg-lightbox__bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 11px 18px; font-size: 13px; }
.tcg-lightbox__top { border-bottom: 1px solid rgba(255,255,255,.11); font-weight: 600; }
.tcg-showcase .tcg-lightbox__close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; box-shadow: none; font-family: Arial,sans-serif; font-size: 26px; line-height: 1; }
.tcg-showcase .tcg-lightbox__close:hover { background: var(--tcg-brand); }
.tcg-lightbox__image { display: flex; justify-content: center; align-items: center; min-height: 120px; overflow: auto; }
.tcg-lightbox__image img { display: block; max-width: 100%; max-height: calc(100dvh - 174px); width: auto; height: auto; object-fit: contain; }
.tcg-lightbox__bottom { justify-content: flex-start; border-top: 1px solid rgba(255,255,255,.1); color: #bdc3cd; font-size: 12px; }
@media (max-width: 780px) {
  .tcg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tcg-card__details { padding: 13px 12px; gap: 9px; }
  .tcg-card__icon { flex-basis: 24px; width: 24px; height: 24px; }
}
@media (max-width: 490px) {
  .tcg-showcase { padding: 4px 0 30px; }
  .tcg-introduction { margin-bottom: 27px; }
  .tcg-showcase .tcg-heading { margin-bottom: 15px; font-size: 28px; line-height: 1.35; letter-spacing: -.5px; }
  .tcg-showcase .tcg-quote { padding-left: 15px; font-size: 13.5px; line-height: 1.9; }
  .tcg-showcase .tcg-signature { font-size: 13px; }
  .tcg-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #d5d7dc transparent; }
  .tcg-showcase .tcg-tab { min-height: 41px; padding: 9px 14px; font-size: 12px; border-radius: 14px; }
  .tcg-grid { grid-template-columns: 1fr; gap: 15px; }
  .tcg-card__image { aspect-ratio: 1.5; }
  .tcg-card__details { min-height: 83px; }
  .tcg-card__zoom { display: none; }
  .tcg-lightbox { padding: 10px; }
  .tcg-lightbox__panel { max-height: calc(100dvh - 20px); }
  .tcg-lightbox__image img { max-height: calc(100dvh - 158px); }
}
@media (prefers-reduced-motion: reduce) { .tcg-showcase *, .tcg-showcase *::before, .tcg-showcase *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
