/* ============================================================
   bio-cv.css — CV page styles for Aradhana Shrestha
   Extends assets/style.css (same design tokens)
   ============================================================ */

/* ── Design tokens (mirror style.css) ── */
:root {
  --crimson:    #9B1C22;
  --crimson-dk: #7a1419;
  --gold:       #C9A84C;
  --gold-lt:    #e8d49a;
  --ink:        #1a1a1a;
  --ink-soft:   #3d3d3d;
  --mist:       #f8f5f0;
  --mist-dk:    #ede9e2;
  --white:      #ffffff;
  --border:     rgba(155,28,34,.12);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.14);
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --r-card:     10px;
  --r-btn:      6px;
  --transition: 240ms ease;
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, #2c0a0d 55%, #1a1a1a 100%);
  color: var(--white);
  padding: 120px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,168,76,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 100%, rgba(155,28,34,.18) 0%, transparent 60%);
  pointer-events: none;
}
.breadcrumb {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.breadcrumb a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--gold); }

.page-hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.28);
  color: var(--gold-lt);
  font-family: var(--ff-body);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.page-hero .tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--white);
  margin: 0 auto 20px;
  max-width: 700px;
  position: relative;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-family: var(--ff-body);
  font-size: clamp(.9rem, 2vw, 1.05rem);
  font-weight: 300;
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── CV ACTION BUTTONS ── */
.cv-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.cv-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cv-btn:active { transform: translateY(0); }

.cv-btn-r  { background: var(--crimson); color: var(--white); }
.cv-btn-r:hover { background: var(--crimson-dk); }
.cv-btn-o  { background: var(--gold); color: var(--ink); }
.cv-btn-o:hover { filter: brightness(1.08); }
.cv-btn-g  { background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.2); }
.cv-btn-g:hover { background: rgba(255,255,255,.18); }

/* ── CV SECTION WRAPPER ── */
.cv-section {
  background: var(--mist);
  padding: 64px 24px 80px;
}
.cv-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* ── CV DOCUMENT CARD ── */
#cv-document {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── CV HEADER ── */
.cv-header {
  background: linear-gradient(135deg, var(--ink) 0%, #2c0a0d 60%, #3a1518 100%);
  padding: 48px 48px 40px;
  position: relative;
  overflow: hidden;
}
.cv-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 100% 50%, rgba(201,168,76,.1) 0%, transparent 65%);
  pointer-events: none;
}
.cv-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--gold) 50%, var(--crimson) 100%);
}
.cv-name {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: 6px;
  position: relative;
}
.cv-name em {
  font-style: italic;
  color: var(--gold);
}
.cv-title {
  font-family: var(--ff-body);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
  position: relative;
}
.cv-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}
.cv-contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-body);
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.cv-contact-item a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--transition);
}
.cv-contact-item a:hover { color: var(--gold); }
.cv-contact-item svg { flex-shrink: 0; opacity: .7; }

/* ── CV BODY ── */
.cv-body {
  padding: 0;
}

/* ── CV SECTION BLOCK ── */
.cv-sec {
  padding: 36px 48px;
  border-bottom: 1px solid var(--mist-dk);
}
.cv-sec:last-child { border-bottom: none; }

.cv-sec-title {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mist-dk);
  position: relative;
}
.cv-sec-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--gold);
}

/* ── PROFILE ── */
.cv-profile {
  font-family: var(--ff-body);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.cv-profile strong { color: var(--ink); font-weight: 600; }

.cv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.cv-badge {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--mist);
  color: var(--ink-soft);
  border: 1px solid var(--mist-dk);
}
.cv-badge-gold {
  background: rgba(201,168,76,.1);
  color: #8a6e1f;
  border-color: rgba(201,168,76,.35);
}

/* ── CREDENTIALS GRID ── */
.cv-cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cv-cred {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--mist);
  border: 1px solid var(--mist-dk);
  border-radius: var(--r-card);
  padding: 16px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cv-cred:hover {
  border-color: rgba(155,28,34,.25);
  box-shadow: var(--shadow-sm);
}
.cv-cred-title {
  font-family: var(--ff-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.cv-cred-sub {
  font-family: var(--ff-body);
  font-size: 12px;
  color: rgba(0,0,0,.45);
}

/* ── COURSES / PILLS ── */
.cv-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cv-course-pill {
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--mist);
  color: var(--ink-soft);
  border: 1px solid var(--mist-dk);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cv-course-pill:hover {
  background: rgba(155,28,34,.06);
  border-color: rgba(155,28,34,.25);
  color: var(--crimson);
}

/* ── MEMBERSHIPS ── */
.cv-memberships {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cv-membership {
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-btn);
  background: rgba(201,168,76,.08);
  color: #7a5e18;
  border: 1px solid rgba(201,168,76,.3);
}

/* ── TRAINING TABLE ── */
.cv-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-body);
  font-size: 13px;
}
.cv-table thead tr {
  background: var(--ink);
  color: var(--white);
}
.cv-table thead th {
  padding: 11px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cv-table thead th:first-child { border-radius: 6px 0 0 0; }
.cv-table thead th:last-child  { border-radius: 0 6px 0 0; }

.cv-table tbody tr { border-bottom: 1px solid var(--mist-dk); }
.cv-table tbody tr:last-child { border-bottom: none; }
.cv-table tbody td {
  padding: 10px 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  vertical-align: top;
}
.cv-table tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.cv-table tbody tr:hover td { background: var(--mist); }

/* category row */
.cv-table .cat-row td {
  background: linear-gradient(90deg, rgba(155,28,34,.06) 0%, transparent 100%);
  color: var(--crimson);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 16px 6px;
  border-bottom: 1px solid rgba(155,28,34,.15);
}

/* ── CV FOOTER (inside card) ── */
.cv-footer {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 48px;
}
.cv-footer-text {
  font-family: var(--ff-body);
  font-size: 11px;
  color: rgba(255,255,255,.35);
}
.cv-footer-certs {
  display: flex;
  gap: 8px;
}
.cv-footer-cert {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(201,168,76,.12);
  color: var(--gold-lt);
  border: 1px solid rgba(201,168,76,.25);
}

/* ── BOTTOM ACTION BUTTONS ── */
.cv-section .cv-actions {
  justify-content: flex-start;
}
.cv-section .cv-btn-r  { background: var(--crimson); }
.cv-section .cv-btn-g  { background: transparent; color: var(--ink); border: 1px solid var(--mist-dk); }
.cv-section .cv-btn-g:hover { background: var(--mist-dk); box-shadow: none; }

/* ── REVEAL ANIMATION (same as index.html) ── */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.rv.visible {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ── PRINT STYLES ── */
@media print {
  nav, .page-hero .cv-actions, .cv-section > .cv-actions,
  footer, .nav-mobile { display: none !important; }

  .page-hero {
    background: none;
    color: var(--ink);
    padding: 32px 0 24px;
  }
  .page-hero h1 { color: var(--ink); }
  .page-hero h1 em { color: var(--crimson); }
  .hero-sub { color: var(--ink-soft); }
  .breadcrumb, .page-hero .tag { display: none; }

  .cv-section { background: none; padding: 0; }
  #cv-document { box-shadow: none; border: none; border-radius: 0; }
  .cv-header {
    background: var(--ink) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cv-table .cat-row td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cv-footer {
    background: var(--ink) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cv-table tbody tr:hover td { background: none; }
  .rv { opacity: 1; transform: none; }
  body { font-size: 12px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .cv-header { padding: 32px 24px 28px; }
  .cv-sec    { padding: 28px 20px; }
  .cv-footer { padding: 14px 20px; }

  .cv-contact-row { flex-direction: column; gap: 10px; }
  .cv-cred-grid   { grid-template-columns: 1fr; }

  .cv-table { font-size: 12px; }
  .cv-table thead th,
  .cv-table tbody td { padding: 8px 10px; }
  .cv-table tbody td:first-child { white-space: normal; }

  .cv-section .cv-actions { justify-content: center; }
}

@media (max-width: 480px) {
  .cv-actions { flex-direction: column; align-items: stretch; }
  .cv-btn { justify-content: center; }
}