/* =====================================================================
   RHCES SEMINAR PORTAL — STYLESHEET
   Matches the RHCES main website dark theme.
   ===================================================================== */

/* ── CSS Variables (mirrors main site theme) ──────────────────────── */
:root {
  --navy-950:    #020817;
  --navy-900:    #0a0e1a;
  --navy-800:    #0d1b2a;
  --navy-700:    #112240;
  --navy-600:    #1a3052;

  --steel-700:   #334155;
  --steel-500:   #64748b;
  --steel-300:   #94a3b8;
  --steel-200:   #cbd5e1;

  --cyan-400:    #22d3ee;
  --cyan-500:    #06b6d4;
  --cyan-bright: #00d4ff;
  --cyan-glow:   rgba(0, 212, 255, 0.15);

  --white:       #ffffff;
  --text-primary:#e2e8f0;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;

  --border:      rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 212, 255, 0.2);

  --grad-accent: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
  --grad-card:   linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);

  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.6);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;

  --font-sans:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display:'Space Grotesk', 'Inter', sans-serif;

  --nav-h:       68px;
  --max-w:       1100px;
  --t-base:      250ms ease;
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--navy-900);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Accent ─────────────────────────────────────────────────────────── */
.accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.portal-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-user-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: border-color var(--t-base), color var(--t-base);
}
.nav-link-btn:hover {
  border-color: var(--border-glow);
  color: var(--cyan-400);
}
.nav-cta {
  background: var(--grad-accent);
  border-color: transparent;
  color: #fff;
}
.nav-cta:hover { opacity: 0.9; color: #fff; }
.nav-logout {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
}
.nav-logout:hover { border-color: rgba(248, 113, 113, 0.5); color: #f87171; }

/* ── Main wrapper ───────────────────────────────────────────────────── */
.portal-main {
  flex: 1;
  padding: 40px 0 80px;
}

/* =====================================================================
   AUTH PAGES (login / register)
   ===================================================================== */
.auth-page {
  min-height: calc(100vh - var(--nav-h) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.auth-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,102,204,0.15) 100%);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  flex-shrink: 0;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.auth-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
}
.alert-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}
.alert a { color: inherit; text-decoration: underline; }

/* Form groups */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.label-hint { font-weight: 400; text-transform: none; color: var(--text-dim); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 11px 44px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.input-wrap input::placeholder { color: var(--text-dim); }
.input-wrap input:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 4px;
  transition: color var(--t-base);
}
.password-toggle:hover { color: var(--cyan-400); }

.btn-primary-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity var(--t-base), transform var(--t-base);
  margin-top: 4px;
}
.btn-primary-full:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary-full:active { transform: translateY(0); }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.auth-switch a { color: var(--cyan-400); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* =====================================================================
   DASHBOARD
   ===================================================================== */
.dashboard-page { padding-top: 12px; }

.dash-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.dash-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.dash-sub { color: var(--text-muted); margin-top: 6px; }
.dash-stats { display: flex; gap: 10px; flex-shrink: 0; }
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-400);
}

/* Seminar grid */
.seminar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.seminar-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
}
.seminar-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(0,212,255,0.1);
  transform: translateY(-3px);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy-800);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.seminar-card:hover .card-thumb img { transform: scale(1.03); }

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--steel-500);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-video {
  background: rgba(0,212,255,0.2);
  border: 1px solid rgba(0,212,255,0.35);
  color: var(--cyan-400);
}
.badge-files {
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.3);
  color: #6ee7b7;
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.card-expiry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.expiry-urgent { color: #fbbf24; }

.btn-open-seminar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  transition: opacity var(--t-base), transform var(--t-base);
  margin-top: 4px;
}
.btn-open-seminar:hover { opacity: 0.88; transform: translateX(2px); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  max-width: 420px;
  margin: 0 auto;
}
.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--grad-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-dim);
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }
.empty-state a { color: var(--cyan-400); }

/* =====================================================================
   SEMINAR DETAIL PAGE
   ===================================================================== */
.seminar-page { padding-top: 12px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: border-color var(--t-base), color var(--t-base);
}
.back-btn:hover { border-color: var(--border-glow); color: var(--cyan-400); }

/* Seminar header */
.seminar-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.seminar-thumb {
  width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 16/9;
}
.seminar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seminar-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.seminar-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
}
.seminar-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(100,116,139,0.15);
  border: 1px solid rgba(100,116,139,0.25);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.access-urgent {
  background: rgba(251,191,36,0.1);
  border-color: rgba(251,191,36,0.3);
  color: #fbbf24;
}

/* Content sections */
.seminar-body { display: flex; flex-direction: column; gap: 36px; }

.content-section {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-label svg { color: var(--cyan-400); }

/* Video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--navy-950);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
}

/* Block OneDrive/SharePoint “Open in browser” only (cross-origin overlay).
   Pop-out is the *rightmost* control; fullscreen is immediately to its left — anchor mask to
   right: 0. A wide mask + inset (e.g. right: 52px) blocked fullscreen instead of pop-out.
   Default width fits the icon; if your embed shows a long “Open in browser” label, raise width
   only until the label is covered (avoid covering the next control to the left). */
.video-wrapper--ms-embed .embed-ms-popout-block {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 64px;
  height: 52px;
  z-index: 50;
  background: transparent;
  cursor: default;
  pointer-events: auto;
  touch-action: none;
}

.video-wrapper--ms-embed.is-wrapper-fullscreen .embed-ms-popout-block {
  right: 0;
  width: 72px;
  height: 58px;
}
.video-note, .files-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}

/* Files */
.files-list { display: flex; flex-direction: column; gap: 10px; }
.files-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-base), background var(--t-base);
}
.file-row:hover {
  border-color: var(--border-glow);
  background: rgba(0,212,255,0.04);
}
.file-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.file-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border-glow);
  color: var(--cyan-400);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--t-base), transform var(--t-base);
  flex-shrink: 0;
}
.btn-download:hover {
  background: rgba(0,212,255,0.2);
  transform: translateY(-1px);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.portal-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: auto;
}
.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-tagline {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); max-width: 520px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--t-base);
}
.footer-links a:hover { color: var(--cyan-400); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
  .nav-user-name { display: none; }
  .nav-link-btn { padding: 6px 12px; font-size: 0.8rem; }

  .auth-card { padding: 28px 22px; }

  .seminar-grid { grid-template-columns: 1fr; }

  .seminar-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .seminar-thumb { width: 100%; aspect-ratio: 16/9; }
  .seminar-title { font-size: 1.35rem; }

  .dash-title { font-size: 1.4rem; }
  .content-section { padding: 20px 16px; }

  .file-row { flex-wrap: wrap; gap: 10px; }
  .btn-download { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .dash-welcome { flex-direction: column; }
  .portal-main { padding: 24px 0 60px; }
  .auth-card { border-radius: var(--radius-md); }
}

/* ── Dashboard Two-Column Layout ─────────────────────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.dash-main { min-width: 0; }

/* ── Sidebar — slide-in from right ───────────────────────────────── */
.dash-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
  animation: slideInRight 0.6s ease both;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-700) transparent;
}
.dash-sidebar::-webkit-scrollbar { width: 5px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: var(--steel-700); border-radius: 10px; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sidebar-header { margin-bottom: 20px; }
.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.sidebar-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}
/* ── Sidebar Carousel / Slideshow ─────────────────────────────── */
.sidebar-carousel {
  position: relative;
  overflow: hidden;
}
.sidebar-cards {
  position: relative;
}
.sidebar-cards {
  display: grid;
}
.sidebar-cards .slide-card {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(30px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-cards .slide-card.slide-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}
.sidebar-cards .slide-card.slide-exit {
  opacity: 0;
  transform: translateX(-30px) scale(0.97);
  z-index: 1;
}
.sidebar-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 4px;
}
.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.slide-dot:hover {
  border-color: var(--cyan-bright);
  transform: scale(1.2);
}
.slide-dot.dot-active {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
  transform: scale(1.2);
}

/* ── Training Card (matches main site) ───────────────────────────── */
.training-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}
.training-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.training-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
}
.training-card:hover::after { opacity: 1; }

.featured-training {
  border-color: rgba(0, 212, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(13,27,42,0.85) 100%);
}
.upcoming-training { border-color: rgba(240, 165, 0, 0.15); }
.upcoming-training .training-icon-wrap {
  background: rgba(240,165,0,0.08);
  border-color: rgba(240,165,0,0.2);
  color: #f0a500;
}

/* ── Training Card Inner Elements ────────────────────────────────── */
.training-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.training-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-bright);
  transition: transform 400ms ease;
}
.training-card:hover .training-icon-wrap {
  transform: scale(1.08) rotate(-2deg);
}
.icon-dim { opacity: 0.6; }
.training-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.training-level {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.training-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  color: #f0a500;
  font-weight: 600;
}
.training-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.25;
}
.training-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── Badges ──────────────────────────────────────────────────────── */
.training-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.badge-popular {
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,102,204,0.1));
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--cyan-bright);
}
.badge-upcoming {
  background: rgba(240,165,0,0.1);
  border: 1px solid rgba(240,165,0,0.3);
  color: #f0a500;
}
.badge-new {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan-bright);
}
.badge-free {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}
.badge-completed {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
}

/* ── Modules ─────────────────────────────────────────────────────── */
.training-modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 16px;
}
.module-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Perks ────────────────────────────────────────────────────────── */
.training-perks {
  background: rgba(74,222,128,0.05);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.perks-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.perk-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--steel-300);
  font-weight: 500;
}

/* ── Seminar Stats Row ───────────────────────────────────────────── */
.seminar-stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.seminar-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.seminar-stat-participants {
  color: #4ade80;
  font-weight: 600;
}
.recording-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--steel-300);
  background: rgba(99,179,237,0.06);
  border: 1px solid rgba(99,179,237,0.15);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-bottom: 10px;
  font-weight: 500;
}
.recording-note svg { color: var(--cyan-bright); flex-shrink: 0; }

/* ── Price Section (animated) ────────────────────────────────────── */
.training-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.price-discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(239,68,68,0.45);
  animation: discountTagPop 1.6s ease-in-out infinite;
}
@keyframes discountTagPop {
  0%, 100% { transform: scale(1);    box-shadow: 0 2px 12px rgba(239,68,68,0.45); }
  50%      { transform: scale(1.06); box-shadow: 0 4px 20px rgba(239,68,68,0.7); }
}
.training-price-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}
.price-original {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: #f87171;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}
.price-text {
  position: relative;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0a0f1e;
  overflow: hidden;
  background: linear-gradient(120deg, #f59e0b, #facc15, #fde68a, #f59e0b);
  background-size: 200% auto;
  box-shadow:
    0 0 12px rgba(250,204,21,0.6),
    0 0 30px rgba(250,204,21,0.3),
    0 4px 16px rgba(0,0,0,0.3);
  animation: priceShimmer 2.5s linear infinite, priceBreathe 3s ease-in-out infinite;
}
@keyframes priceShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes priceBreathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 12px rgba(250,204,21,0.6), 0 0 30px rgba(250,204,21,0.3), 0 4px 16px rgba(0,0,0,0.3); }
  50%      { transform: scale(1.05); box-shadow: 0 0 22px rgba(250,204,21,0.9), 0 0 50px rgba(250,204,21,0.4), 0 6px 20px rgba(0,0,0,0.4); }
}
.price-text::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: priceShineStreak 2.5s ease-in-out infinite;
}
@keyframes priceShineStreak {
  0%   { left: -75%; opacity: 0; }
  20%  { opacity: 1; }
  60%  { left: 130%; opacity: 0; }
  100% { left: 130%; opacity: 0; }
}
.price-discount-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: #fbbf24;
  font-weight: 600;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  padding: 4px 12px;
  border-radius: 50px;
  animation: urgencyBlink 2.5s ease-in-out infinite;
}
@keyframes urgencyBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* ── Training Info Row ───────────────────────────────────────────── */
.training-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.training-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ── Training Action Buttons ─────────────────────────────────────── */
.training-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
}
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
  cursor: pointer;
  border: none;
}
.tc-btn-primary {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}
.tc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}
.tc-btn-outline {
  background: transparent;
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 212, 255, 0.4);
}
.tc-btn-outline:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--cyan-bright);
  transform: translateY(-2px);
}

/* ── Scroll Reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: stack sidebar below on narrow screens ────────── */
@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: static;
    max-height: none;
    animation: none;
    opacity: 1;
  }
}
@media (max-width: 480px) {
  .training-card { padding: 20px; }
  .training-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .training-meta { align-items: flex-start; }
  .training-actions { flex-direction: column; }
  .training-actions .tc-btn { width: 100%; justify-content: center; }
}
