/* ─── PREMIER POOLS & SPAS — TEMECULA OPS PORTAL ─────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:       #1B3A5C;
  --navy-dark:  #112540;
  --navy-light: #2A5285;
  --gold:       #C49A28;
  --gold-light: #E2BC5A;
  --gold-pale:  #FDF6E3;
  --white:      #FFFFFF;
  --off-white:  #F8F9FB;
  --gray-100:   #F2F4F6;
  --gray-200:   #E4E8ED;
  --gray-400:   #9BA8B5;
  --gray-700:   #4A5568;
  --gray-900:   #1A202C;
  --red:        #C0392B;
  --green:      #1A6B3A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 4px rgba(27,58,92,0.08);
  --shadow-md:  0 4px 16px rgba(27,58,92,0.12);
  --shadow-lg:  0 8px 32px rgba(27,58,92,0.18);

  --sidebar-w:  260px;
  --header-h:   64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-700);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── TOPBAR ──────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--navy-dark);
  border-bottom: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  box-shadow: var(--shadow-md);
}

.topbar-brand {
  display: flex; align-items: center; gap: 14px;
}

.topbar-logo-mark {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.topbar-name {
  display: flex; flex-direction: column; line-height: 1.2;
}

.topbar-name strong {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.topbar-name span {
  font-size: 11px; font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-name {
  display: flex; flex-direction: column; line-height: 1.2;
}

.topbar-name strong {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.topbar-name span {
  font-size: 11px; font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-right {
  display: flex; align-items: center; gap: 20px;
}

.topbar-location {
  font-size: 12px; font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(196,154,40,0.3);
  padding: 4px 12px; border-radius: 20px;
}

.topbar-logout {
  font-size: 12px; color: var(--gray-400);
  cursor: pointer; transition: color 0.2s;
}
.topbar-logout:hover { color: var(--white); }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.layout {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  background: var(--navy);
  overflow-y: auto;
  padding: 24px 0 40px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-section-label {
  font-size: 10px; font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 24px 6px;
  display: block;
}

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 24px;
  font-size: 13.5px; font-weight: 400;
  color: rgba(255,255,255,0.7);
  transition: all 0.15s;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-left-color: rgba(196,154,40,0.4);
}

.sidebar-link.active {
  background: rgba(196,154,40,0.12);
  color: var(--white);
  border-left-color: var(--gold);
  font-weight: 500;
}

.sidebar-link .icon {
  font-size: 15px; width: 18px; text-align: center;
  opacity: 0.8; flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 12px 24px;
}

/* ── MAIN CONTENT ────────────────────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 40px 48px;
  max-width: 1100px;
}

/* ── PAGE HEADER ─────────────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 32px;
}

.page-header-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.2;
}

.page-header p {
  margin-top: 8px;
  font-size: 15px; color: var(--gray-700);
  max-width: 600px;
}

.page-divider {
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 16px 0 32px;
  border: none;
}

/* ── CATEGORY CARDS ──────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
  transition: background 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gold-light);
}

.category-card:hover::before {
  background: var(--gold);
}

.category-icon {
  width: 44px; height: 44px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: background 0.2s;
}

.category-card:hover .category-icon {
  background: var(--gold-pale);
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.category-card p {
  font-size: 13px; color: var(--gray-400);
  line-height: 1.5;
}

.category-count {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── SOP LIST ────────────────────────────────────────────────────────────── */
.sop-list {
  display: flex; flex-direction: column; gap: 12px;
}

.sop-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 18px;
  text-decoration: none;
  transition: all 0.15s;
}

.sop-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.sop-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gold-pale);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}

.sop-item-body { flex: 1; }

.sop-item-body h4 {
  font-size: 14.5px; font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 3px;
}

.sop-item-body p {
  font-size: 12.5px; color: var(--gray-400);
}

.sop-item-meta {
  text-align: right; flex-shrink: 0;
}

.sop-item-meta .version {
  font-size: 11px; font-weight: 600;
  color: var(--gray-400);
  display: block; margin-bottom: 4px;
}

.sop-item-meta .date {
  font-size: 11px; color: var(--gray-400);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-new    { background: #EBF8F0; color: var(--green); }
.badge-update { background: #FEF9E7; color: #B7860B; }
.badge-draft  { background: var(--gray-100); color: var(--gray-400); }

/* ── SOP DOCUMENT VIEW ───────────────────────────────────────────────────── */
.sop-doc-header {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 28px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
}

.sop-doc-header-left {}

.sop-doc-header-left .breadcrumb {
  font-size: 12px; color: var(--gray-400);
  margin-bottom: 8px;
}

.sop-doc-header-left .breadcrumb a {
  color: var(--gray-400);
}
.sop-doc-header-left .breadcrumb a:hover { color: var(--navy); }

.sop-doc-header-left h1 {
  font-family: var(--font-display);
  font-size: 26px; color: var(--navy-dark);
  margin-bottom: 10px;
}

.sop-meta-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--gray-400);
}

.sop-meta-row span strong {
  color: var(--gray-700); font-weight: 500;
}

.sop-doc-actions {
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: none;
  transition: all 0.15s; text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy); color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); color: var(--white); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--gray-100);
}

.btn-gold {
  background: var(--gold); color: var(--navy-dark);
  font-weight: 600;
}
.btn-gold:hover { background: var(--gold-light); }

/* ── SOP CONTENT BODY ────────────────────────────────────────────────────── */
.sop-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
}

.sop-content h2 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--navy-dark);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-pale);
}

.sop-content h2:first-child { margin-top: 0; }

.sop-content h3 {
  font-size: 15px; font-weight: 600;
  color: var(--navy);
  margin: 24px 0 8px;
}

.sop-content p {
  font-size: 14.5px; color: var(--gray-700);
  line-height: 1.75; margin-bottom: 12px;
}

.sop-content ul, .sop-content ol {
  padding-left: 22px; margin-bottom: 14px;
}

.sop-content li {
  font-size: 14.5px; color: var(--gray-700);
  line-height: 1.7; margin-bottom: 6px;
}

.sop-content table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0 24px; font-size: 13.5px;
}

.sop-content th {
  background: var(--navy); color: var(--white);
  padding: 10px 14px; text-align: left;
  font-weight: 600; font-size: 12.5px;
}

.sop-content td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  vertical-align: top;
}

.sop-content tr:nth-child(even) td { background: var(--gray-100); }

.callout {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout-warning {
  background: #FEF2F2;
  border-left: 4px solid var(--red);
  color: #7B2020;
}

.callout-success {
  background: #F0FDF4;
  border-left: 4px solid var(--green);
  color: #14532D;
}

.callout-info {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  color: #7A5C10;
}

.callout-navy {
  background: #EEF3F9;
  border-left: 4px solid var(--navy);
  color: var(--navy-dark);
}

.checklist {
  list-style: none;
  padding: 0; margin: 0 0 16px;
}

.checklist li {
  padding: 7px 0 7px 28px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.checklist li::before {
  content: '☐';
  position: absolute; left: 0;
  color: var(--navy); font-size: 15px;
}

/* ── TOC ─────────────────────────────────────────────────────────────────── */
.toc {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc h4 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 10px;
}

.toc ol {
  padding-left: 18px; margin: 0;
}

.toc li {
  font-size: 13.5px; margin-bottom: 5px;
}

.toc a { color: var(--navy); }
.toc a:hover { color: var(--gold); }

/* ── PASSWORD GATE ───────────────────────────────────────────────────────── */
#gate {
  position: fixed; inset: 0;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

.gate-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.gate-logo-mark {
  height: 80px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
}

.gate-box h2 {
  font-family: var(--font-display);
  font-size: 22px; color: var(--navy-dark);
  margin-bottom: 4px;
}

.gate-box p {
  font-size: 13px; color: var(--gray-400);
  margin-bottom: 28px;
}

.gate-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px; color: var(--gray-900);
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.15s;
  text-align: center; letter-spacing: 0.1em;
}

.gate-input:focus { border-color: var(--navy); }
.gate-input.error { border-color: var(--red); }

.gate-btn {
  width: 100%;
  padding: 13px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.03em;
}

.gate-btn:hover { background: var(--navy-light); }

.gate-error {
  font-size: 12px; color: var(--red);
  margin-top: 10px; display: none;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  margin-left: var(--sidebar-w);
  padding: 24px 48px;
  border-top: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gray-400);
}

/* ── UTILITY ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }


/* ── COMPANY SELECTOR ────────────────────────────────────────────────────── */
#company-select {
  position: fixed; inset: 0;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}

.company-select-box {
  text-align: center;
  max-width: 640px;
  width: 100%;
  padding: 0 24px;
}

.company-select-header {
  margin-bottom: 40px;
}

.company-select-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.company-select-header h1 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.company-select-header p {
  font-size: 15px; color: var(--gray-400);
}

.company-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.company-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-md);
}

.company-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.company-card-logo {
  height: 72px; width: auto;
}

.company-card-logo-text {
  height: 72px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.company-card-logo-text span {
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.12em;
}

.company-card h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--navy-dark);
}

.company-card-location {
  font-size: 13px; color: var(--gray-400);
  font-weight: 500;
}

/* ── SECTION HEADERS ─────────────────────────────────────────────────────── */
.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 14px; color: var(--gray-400);
}

/* ── CARD PROGRESS INDICATOR ─────────────────────────────────────────────── */
.card-progress {
  height: 3px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
}

.card-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.4s;
  width: 0%;
}

/* ── TRAINING STATS ROW ──────────────────────────────────────────────────── */
.training-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.training-stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}

.training-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.2;
}

.training-stat-label {
  font-size: 11px; font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── TRAINING MODULES GRID ───────────────────────────────────────────────── */
.training-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.training-module-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  position: relative;
}

.training-module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gold-light);
}

.training-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}

.training-card-icon {
  font-size: 28px;
}

.training-card-badge {
  font-size: 10px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-pale);
  padding: 3px 10px; border-radius: 12px;
}

.training-card-eyebrow {
  font-size: 11px; font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.training-module-card h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.training-module-card p {
  font-size: 13px; color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: 14px;
}

.training-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gray-400);
  margin-bottom: 10px;
}

.training-card-status {
  font-weight: 600;
  color: var(--gray-400);
}

.training-card-status.in-progress { color: var(--gold); }
.training-card-status.complete { color: var(--green); }

.training-card-progress-bar {
  height: 4px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.training-card-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.4s;
  width: 0%;
}

.training-card-progress-fill.complete {
  background: var(--green);
}

/* ── BACK LINK ───────────────────────────────────────────────────────────── */
.back-link {
  display: inline-block;
  font-size: 13px; font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 12px;
  transition: color 0.15s;
}

.back-link:hover { color: var(--navy); }

/* ── MODULE PROGRESS BAR ─────────────────────────────────────────────────── */
.module-progress-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.module-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}

.module-progress-label {
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-progress-count {
  font-size: 13px; font-weight: 500;
  color: var(--gray-700);
}

.module-progress-track {
  height: 6px;
  background: var(--gray-100);
  border-radius: 6px;
  overflow: hidden;
}

.module-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 6px;
  transition: width 0.4s;
  width: 0%;
}

/* ── VIDEO CARDS ─────────────────────────────────────────────────────────── */
.video-list {
  display: flex; flex-direction: column; gap: 12px;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.video-card:hover {
  border-color: var(--gold-light);
}

.video-card.watched {
  border-left: 3px solid var(--green);
}

.video-card-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.video-card-header:hover {
  background: var(--gray-100);
}

.video-card-num {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--gold);
  width: 36px; text-align: center;
  flex-shrink: 0;
}

.video-card-info {
  flex: 1;
}

.video-card-info h4 {
  font-size: 15px; font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 2px;
}

.video-card-dur {
  font-size: 12px; color: var(--gray-400);
}

.video-card-toggle {
  background: none; border: none; cursor: pointer;
  padding: 4px;
}

.video-card-check {
  width: 24px; height: 24px;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  font-size: 0;
}

.video-card-check.watched {
  background: var(--green);
  border-color: var(--green);
  font-size: 12px;
  color: var(--white);
}

.video-card-check.watched::after {
  content: '✓';
}

.video-card-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--gray-100);
}

.video-card.expanded .video-card-body {
  display: block;
}

.video-card-embed {
  margin: 16px 0;
}

.video-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--gray-400);
}

.video-placeholder-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.video-placeholder p {
  font-size: 14px; font-weight: 500;
  margin-bottom: 2px;
}

.video-placeholder span {
  font-size: 12px;
}

.video-embed-wrapper {
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-card-learn {
  margin: 16px 0;
}

.video-card-learn h5 {
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.video-card-learn ul {
  padding-left: 18px; margin: 0;
}

.video-card-learn li {
  font-size: 13.5px; color: var(--gray-700);
  line-height: 1.6; margin-bottom: 4px;
}

.video-card-complete-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.video-card-complete-btn:hover { background: var(--navy-light); }

.video-card-complete-btn.watched {
  background: var(--green);
}

.video-card-complete-btn.watched::before {
  content: '✓ ';
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .company-cards { grid-template-columns: 1fr; }
  .training-stats-row { grid-template-columns: repeat(2, 1fr); }
  .training-modules-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .site-footer { margin-left: 0; }
}
