/* ═══════════════════════════════════════════════════════════════
   HR LEADERS CLUB — Member Area Design System
   Extends the public site palette with member-specific components
═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --teal: #0d6e6e;
  --teal-dark: #094f4f;
  --teal-mid: #0d9090;
  --teal-light: #e6f4f4;
  --teal-pale: #f0f9f9;
  --gold: #c4952a;
  --gold-light: #fdf6e3;

  /* Surfaces */
  --hero: #111820;
  --hero-mid: #1e2a35;
  --hero-card: #243040;
  --white: #ffffff;
  --off-white: #f7fafa;
  --border: #e2e8ec;
  --border-dark: #c8d4da;

  /* Text */
  --text: #2c3440;
  --text-muted: #637080;
  --text-light: #94a3b0;

  /* Sidebar */
  --sidebar-w: 240px;
  --sidebar-bg: #0e1520;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: rgba(13, 110, 110, 0.18);

  /* Status */
  --green: #1a7a4a;
  --green-light: #e8f5ee;
  --amber: #b86e00;
  --amber-light: #fdf0dc;
  --red: #b03a2e;
  --red-light: #fdecea;

  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.13);
  --nav-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;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  color: var(--teal-dark);
}
button {
  cursor: pointer;
  font-family: inherit;
}
img {
  display: block;
  max-width: 100%;
}

/* ── Top nav bar ─────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(14, 21, 32, 0.97);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}
.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--teal);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.top-nav-links a {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition:
    color 0.15s,
    background 0.15s;
}
.top-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.top-nav-links a.active {
  color: #fff;
  background: rgba(13, 110, 110, 0.25);
}

.member-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 16px;
  padding: 6px 14px 6px 8px;
  background: rgba(13, 110, 110, 0.2);
  border: 1px solid rgba(13, 110, 110, 0.35);
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.2s;
}
.member-badge:hover {
  background: rgba(13, 110, 110, 0.3);
}
.member-avatar {
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.member-badge-name {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Layout shell ─────────────────────────────────────────────── */
.member-shell {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--sidebar-bg);
  min-height: calc(100vh - var(--nav-h));
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 24px 0 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section-label {
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  padding: 16px 20px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sidebar-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: var(--sidebar-hover);
}
.sidebar-link.active {
  color: #fff;
  background: var(--sidebar-active);
  border-left-color: var(--teal-mid);
}
.sidebar-icon {
  width: 16px;
  height: 16px;
  opacity: 0.55;
  flex-shrink: 0;
}
.sidebar-link.active .sidebar-icon,
.sidebar-link:hover .sidebar-icon {
  opacity: 1;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
}

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

.sidebar-footer {
  margin-top: auto;
  padding: 0 20px;
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  padding: 8px 0;
  transition: color 0.15s;
}
.sidebar-footer a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Main content area ───────────────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 32px 40px 64px;
}

/* ── Page header ─────────────────────────────────────────────── */
.page-header {
  margin-bottom: 32px;
}
.page-eyebrow {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--teal);
}
.page-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--hero);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 580px;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card-sm {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

/* ── Stat cards ──────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-mid));
}
.stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--hero);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-value span {
  color: var(--teal);
}
.stat-label {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 10px rgba(13, 110, 110, 0.28);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 110, 110, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}
.btn-ghost {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: none;
}
.btn-ghost:hover {
  background: var(--teal-mid);
  color: #fff;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 2px 10px rgba(196, 149, 42, 0.28);
}
.btn-gold:hover {
  background: #a87d22;
  color: #fff;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 13px;
}

/* ── Tags / badges ───────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.tag-teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.tag-gold {
  background: var(--gold-light);
  color: var(--gold);
}
.tag-green {
  background: var(--green-light);
  color: var(--green);
}
.tag-amber {
  background: var(--amber-light);
  color: var(--amber);
}
.tag-red {
  background: var(--red-light);
  color: var(--red);
}
.tag-grey {
  background: #f0f2f4;
  color: var(--text-muted);
}

/* ── Vault download card ─────────────────────────────────────── */
.vault-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
  position: relative;
}
.vault-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-mid));
}
.vault-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--teal-mid);
}
.vault-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.vault-card.featured::before {
  background: linear-gradient(90deg, var(--gold), #e5b040);
}
.vault-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vault-card-type {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vault-card-type::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}
.vault-card.featured .vault-card-type {
  color: var(--gold);
}
.vault-card.featured .vault-card-type::before {
  background: var(--gold);
}
.vault-card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--hero);
  line-height: 1.35;
}
.vault-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.55;
}
.vault-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--off-white);
  gap: 10px;
  flex-wrap: wrap;
}
.vault-card-meta {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.download-btn:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
}
.vault-card.featured .download-btn {
  background: var(--gold);
}
.vault-card.featured .download-btn:hover {
  background: #a87d22;
}

/* ── Grid layouts ─────────────────────────────────────────────── */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ── Section header ──────────────────────────────────────────── */
.section-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-hdr h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--hero);
  letter-spacing: -0.01em;
}
.section-hdr p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── Category filter pills ───────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-pill {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.filter-pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ── Event cards ─────────────────────────────────────────────── */
.event-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.event-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--teal-mid);
}
.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  text-align: center;
}
.event-date-month {
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.event-date-day {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
}
.event-body {
  flex: 1;
  min-width: 0;
}
.event-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--hero);
  margin-bottom: 4px;
}
.event-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Welcome banner ──────────────────────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, var(--hero) 0%, var(--hero-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(13, 110, 110, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 160px;
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle,
    rgba(13, 110, 110, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.welcome-text {
  position: relative;
  z-index: 1;
}
.welcome-greeting {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.welcome-greeting span {
  color: var(--teal-mid);
}
.welcome-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
}
.welcome-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* ── Progress indicator ──────────────────────────────────────── */
.progress-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.progress-label {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.progress-bar-outer {
  height: 6px;
  background: var(--teal-light);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-mid));
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ── Utility ─────────────────────────────────────────────────── */
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.mt-auto {
  margin-top: auto;
}
.text-sm {
  font-size: 13px;
}
.text-xs {
  font-size: 11.5px;
}
.text-muted {
  color: var(--text-muted);
}
.font-bold {
  font-family: var(--font-head);
  font-weight: 700;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}

/* ── Scroll animations ───────────────────────────────────────── */
.fade-up {
  opacity: 1;
  transform: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
.fade-up.d1 {
  transition-delay: 0.08s;
}
.fade-up.d2 {
  transition-delay: 0.16s;
}
.fade-up.d3 {
  transition-delay: 0.24s;
}
.fade-up.d4 {
  transition-delay: 0.32s;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-row,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }
  .sidebar {
    display: none;
  }
  .main-content {
    padding: 20px 16px 48px;
  }
  .stats-row,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-nav-links {
    display: none;
  }
}

/* EC-BTN-104 + EC-NAV-121: Re-assert hero / CTA text-white on buttons & links.
   Uses class~= (word match) not class*= (substring) to avoid matching hover:text-white etc. */
button[class~='text-white/90'],
a[class~='text-white/90'] {
  color: rgba(255, 255, 255, 0.9);
}
button[class~='text-white/80'],
a[class~='text-white/80'] {
  color: rgba(255, 255, 255, 0.8);
}
button[class~='text-white/70'],
a[class~='text-white/70'] {
  color: rgba(255, 255, 255, 0.7);
}
button[class~='text-white/60'],
a[class~='text-white/60'] {
  color: rgba(255, 255, 255, 0.6);
}
button[class~='text-white/50'],
a[class~='text-white/50'] {
  color: rgba(255, 255, 255, 0.5);
}
button[class~='text-white/40'],
a[class~='text-white/40'] {
  color: rgba(255, 255, 255, 0.4);
}
button[class~='text-white'],
a[class~='text-white'] {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* EC-ANIM-008b / EC-ANIM-009: carousel-only override — scroll-reveal elements animate via IO in functions.php */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-wpconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}
