/* ============================================================
   TRAINING — training.css
   ============================================================ */
.tr-muted { color: var(--text-secondary); font-size: 0.7rem; }

/* Upcoming classes */
.tr-classes { padding: var(--section-padding); background: #fff; scroll-margin-top: 80px; }
.tr-table-wrap { margin-top: 32px; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.tr-table th { text-align: left; font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); padding: 12px; border-bottom: 2px solid var(--border-color); }
.tr-table td { padding: 16px 12px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.tr-table td small, .tr-session small { display: block; font-size: 0.65rem; color: var(--text-secondary); font-weight: 400; }
.tr-table a:not(.t2-button) { color: var(--primary); font-weight: 600; text-decoration: none; }
.tr-btn-sm { padding: 10px 18px !important; font-size: 0.6rem !important; white-space: nowrap; }
.tr-badge { display: inline-block; font-size: 0.6rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; background: #e8f5e9; color: #2e7d32; }
.tr-badge--low { background: #fff8e1; color: #8a6100; }
.tr-badge--full { background: #fdecea; color: #c62828; }
.tr-empty { margin-top: 24px; padding: 32px; background: var(--bg-light); border-radius: 8px; max-width: 760px; }
.tr-empty p { font-size: 0.85rem; line-height: 1.7; margin: 0 0 20px; }

/* Course cards */
.tr-courses { padding: var(--section-padding); background: var(--bg-light); scroll-margin-top: 80px; }
.tr-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.tr-course { display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: box-shadow .25s ease, transform .25s ease; }
.tr-course:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.12); transform: translateY(-3px); }
.tr-course__img { aspect-ratio: 16 / 9; background: #e9ecef; overflow: hidden; }
.tr-course__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-course__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tr-course__meta { display: flex; gap: 10px; align-items: center; font-size: 0.65rem; color: var(--text-secondary); margin-bottom: 10px; }
.tr-level { font-weight: 700; padding: 2px 9px; border-radius: 10px; background: #e3f2fd; color: #0d47a1; }
.tr-level--intermediate { background: #fff8e1; color: #8a6100; }
.tr-level--advanced { background: #fdecea; color: #c62828; }
.tr-course h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--dark-grey); }
.tr-course p { font-size: 0.75rem; line-height: 1.6; color: var(--text-secondary); margin: 0 0 16px; flex: 1; }
.tr-course__more { font-size: 0.7rem; font-weight: 700; color: var(--primary); }
#team { scroll-margin-top: 80px; }

/* Course page */
.tr-course-hero { min-height: 440px; }
.tr-facts { background: #fff; border-bottom: 1px solid var(--border-color); }
.tr-facts__grid { display: flex; flex-wrap: wrap; gap: 0; }
.tr-facts__grid > div { padding: 22px 32px 22px 0; margin-right: 32px; border-right: 1px solid var(--border-color); }
.tr-facts__grid > div:last-child { border-right: 0; }
.tr-facts span { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; }
.tr-facts strong { font-size: 0.85rem; }
.tr-facts small { font-weight: 400; color: var(--text-secondary); font-size: 0.7rem; }

.tr-detail { padding: 56px 0 96px; background: var(--bg-light); }
.tr-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.tr-detail__main h2 { font-size: 1.4rem; font-weight: 400; margin: 40px 0 16px; }
.tr-detail__main h2:first-child { margin-top: 0; }
.tr-p { font-size: 0.85rem; line-height: 1.7; color: var(--text-primary); margin: 0; }
.tr-desc { font-size: 0.85rem; line-height: 1.75; }
.tr-desc p { margin: 0 0 14px; }
.tr-outline { counter-reset: mod; list-style: none; padding: 0; margin: 0; }
.tr-outline li { counter-increment: mod; position: relative; padding: 14px 16px 14px 56px; background: #fff; border-radius: 6px; margin-bottom: 8px; font-size: 0.82rem; }
.tr-outline li::before { content: counter(mod, decimal-leading-zero); position: absolute; left: 16px; top: 13px; font-weight: 700; color: var(--primary); }
.tr-sessions { display: flex; flex-direction: column; gap: 10px; }
.tr-session { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border-radius: 6px; padding: 16px 18px; flex-wrap: wrap; font-size: 0.8rem; }
.tr-session strong { display: block; }
.tr-session__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-register { position: sticky; top: calc(var(--nav-full-height, 80px) + 20px); padding: 28px; scroll-margin-top: 100px; }
.tr-register .contact-form-card__title { font-size: 1.25rem; }

@media (max-width: 1024px) {
  .tr-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-detail__grid { grid-template-columns: minmax(0, 1fr); }
  .tr-register { position: static; }
}
@media (max-width: 768px) {
  .tr-course-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-table thead { display: none; }
  .tr-table, .tr-table tbody, .tr-table tr, .tr-table td { display: block; width: 100%; }
  .tr-table tr { border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 12px; padding: 8px 4px; }
  .tr-table td { border: 0; padding: 6px 12px; }
  .tr-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.55rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); }
  .tr-facts__grid > div { border-right: 0; padding: 14px 0; margin-right: 24px; }
  .tr-detail { padding: 32px 0 64px; }
}
