/* Customer Services Academy — Premium Design System */
/* Fonts: Plus Jakarta Sans (UI) + Newsreader (Display) */

:root {
  --navy:        #1e3a5f;
  --navy-light:  #2a4d7a;
  --blue:        #4a7fa5;
  --blue-dark:   #2e5f80;
  --blue-pale:   #eef4f8;
  --gold:        #e8192c;
  --gold-light:  #fde8ea;
  --red:         #e8192c;
  --red-dark:    #c0121f;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.1);
  --r:           8px;
  --r-lg:        14px;
  --r-xl:        20px;
  --font-sans:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:  'Newsreader', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
.t-display { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.t-serif   { font-family: var(--font-serif); }
.t-muted   { color: var(--text-muted); }
.t-light   { color: var(--text-light); }
.t-navy    { color: var(--navy); }
.t-blue    { color: var(--blue); }
.t-gold    { color: var(--gold); }
.t-white   { color: #fff; }
.t-sm      { font-size: .85rem; }
.t-xs      { font-size: .75rem; }

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px;  margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--r); font-size: .9rem; font-weight: 600;
  border: none; transition: all .15s; white-space: nowrap; text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-navy    { background: var(--navy);    color: #fff; }
.btn-navy:hover  { background: var(--navy-light); color: #fff; }
.btn-blue    { background: var(--blue);    color: #fff; }
.btn-blue:hover  { background: var(--blue-dark);  color: #fff; }
.btn-red     { background: var(--red);     color: #fff; }
.btn-red:hover   { background: var(--red-dark);   color: #fff; }
.btn-gold    { background: var(--gold);    color: #fff; }
.btn-gold:hover  { background: #c0121f;           color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-ghost   { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg  { padding: 14px 28px; font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm  { padding: 6px 14px;  font-size: .82rem; }
.btn-full { width: 100%; }

/* ── TOP BAR ──────────────────────────────────────────────────────────────── */
.top-bar { background: var(--navy); color: rgba(255,255,255,.75); font-size: .78rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.top-bar a { color: rgba(255,255,255,.65); transition: color .15s; }
.top-bar a:hover { color: #fff; text-decoration: none; }
.top-bar-links { display: flex; gap: 20px; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.nav { background: #fff; border-bottom: 2px solid var(--blue); box-shadow: 0 2px 12px rgba(30,58,95,.07); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; gap: 24px; padding: 0 24px; max-width: 1200px; margin: 0 auto; height: 90px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo img { height: 80px; width: auto; display: block; }
.nav-search { flex: 1; max-width: 360px; }
.nav-search-input { width: 100%; padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 24px; font-size: .875rem; outline: none; transition: border .15s; }
.nav-search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,127,165,.1); }
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-link { padding: 7px 14px; border-radius: var(--r); font-size: .875rem; font-weight: 500; color: var(--text); background: none; border: none; transition: all .15s; white-space: nowrap; cursor: pointer; }
.nav-link:hover { background: var(--blue-pale); color: var(--navy); text-decoration: none; }
.nav-link-active { color: var(--navy); font-weight: 700; }
.nav-cta { background: var(--red) !important; color: #fff !important; font-weight: 600 !important; border-radius: var(--r) !important; }
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(74,127,165,.25) 0%, transparent 55%), radial-gradient(circle at 10% 80%, rgba(201,162,39,.1) 0%, transparent 45%); pointer-events: none; }
.hero-inner { display: flex; align-items: center; gap: 60px; position: relative; }
.hero-text { flex: 1; min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 5px 14px; border-radius: 20px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; color: rgba(255,255,255,.9); }
.hero h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-desc { font-size: 1.05rem; opacity: .88; margin-bottom: 32px; max-width: 520px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 36px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap; }
.hero-stat-num { font-size: 1.9rem; font-weight: 700; display: block; line-height: 1; }
.hero-stat-label { font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .07em; margin-top: 3px; }
.hero-visual { width: 260px; flex-shrink: 0; }
.hero-card { background: rgba(255,255,255,.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-xl); padding: 28px; text-align: center; }
.hero-logo-display { width: 110px; height: auto; display: block; margin: 0 auto 14px; filter: brightness(0) invert(1); opacity: .92; }

/* ── SECTION ──────────────────────────────────────────────────────────────── */
.section     { padding: 64px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: #fff; }
.section-header { margin-bottom: 40px; }
.section-header-center { text-align: center; margin-bottom: 40px; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; margin-bottom: 8px; color: var(--text); }
.section-navy .section-title { color: #fff; }
.section-sub { color: var(--text-muted); font-size: .95rem; max-width: 560px; line-height: 1.65; }
.section-navy .section-sub { color: rgba(255,255,255,.7); }
.section-header-center .section-sub { margin: 8px auto 0; }

/* ── STATS STRIP ──────────────────────────────────────────────────────────── */
.stats-strip { background: var(--navy); color: #fff; padding: 28px 0; }
.stats-strip-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.stat-num { font-size: 1.8rem; font-weight: 700; display: block; line-height: 1; }
.stat-label { font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }

/* ── CERT CARD ────────────────────────────────────────────────────────────── */
.cert-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all .2s; display: flex; flex-direction: column; cursor: pointer; }
.cert-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); transform: translateY(-2px); }
.cert-card-stripe { height: 5px; background: var(--blue); }
.cert-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.cert-card-code { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.cert-card-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; color: var(--text); }
.cert-card-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.45; flex: 1; }
.cert-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cert-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--off-white); gap: 10px; }

/* ── CARDS GRID ───────────────────────────────────────────────────────────── */
.cards-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── BADGE / TAG ──────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
.badge-blue  { background: var(--blue-pale);  color: var(--blue); }
.badge-navy  { background: #e8f0f8;            color: var(--navy); }
.badge-gold  { background: var(--gold-light);  color: #9b1a25; }
.badge-red   { background: #fde8ea;            color: var(--red-dark); }
.badge-green { background: #e8f5e9;            color: #2e7d32; }
.badge-gray  { background: #f1f5f9;            color: var(--text-muted); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .7rem; font-weight: 500; background: var(--off-white); color: var(--text-muted); border: 1px solid var(--border); }

/* ── SIDEBAR ──────────────────────────────────────────────────────────────── */
.sidebar { width: 230px; flex-shrink: 0; }
.sidebar-section { margin-bottom: 28px; }
.sidebar-section-title { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.sidebar-link { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: var(--r); font-size: .875rem; color: var(--text); cursor: pointer; transition: all .12s; border: none; background: none; width: 100%; text-align: left; }
.sidebar-link:hover { background: var(--off-white); color: var(--navy); }
.sidebar-link-active { background: var(--blue-pale) !important; color: var(--navy) !important; font-weight: 600; }
.sidebar-count { font-size: .7rem; background: var(--off-white); color: var(--text-muted); padding: 2px 7px; border-radius: 10px; border: 1px solid var(--border); }

/* ── FORM ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: .92rem; outline: none; transition: border .15s; background: #fff; color: var(--text); }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,127,165,.1); }
.form-error { color: var(--red); font-size: .82rem; margin-top: 5px; }

/* ── MODAL ────────────────────────────────────────────────────────────────── */
.modal-overlay { display: flex; position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: var(--r-xl); padding: 36px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); position: relative; max-height: 90vh; overflow-y: auto; }
.modal-title { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.modal-sub { font-size: .875rem; color: var(--text-muted); margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--off-white); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); font-size: 1.1rem; line-height: 1; transition: all .15s; }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-muted); font-size: .8rem; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.modal-footer-link { text-align: center; margin-top: 18px; font-size: .85rem; color: var(--text-muted); }
.btn-social { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border: 1.5px solid var(--border); border-radius: var(--r); background: #fff; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.btn-social:hover { border-color: var(--blue); background: var(--blue-pale); }
@media (max-width: 480px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 28px 20px 32px; max-height: 92vh; }
  .modal-title { font-size: 1.15rem; }
  .form-group { margin-bottom: 14px; }
  .btn-social { padding: 13px 20px; font-size: .95rem; }
}

/* ── COURSE HEADER ────────────────────────────────────────────────────────── */
.course-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; padding: 48px 0; }
.course-header h1 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin-bottom: 10px; line-height: 1.2; }
.course-header-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: .85rem; opacity: .85; margin-top: 16px; align-items: center; }
.course-panel { background: #fff; border-radius: var(--r-lg); padding: 28px; color: var(--text); box-shadow: var(--shadow-lg); position: sticky; top: 108px; }
.course-panel-price { font-size: 2.2rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.course-panel-features { font-size: .85rem; color: var(--text-muted); margin: 16px 0; }
.course-panel-features li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-start; }
.course-panel-features li:last-child { border: none; }
.course-tabs { border-bottom: 2px solid var(--border); margin-bottom: 28px; display: flex; gap: 0; }
.course-tab { padding: 13px 20px; background: none; border: none; border-bottom: 3px solid transparent; font-size: .9rem; cursor: pointer; color: var(--text-muted); font-weight: 600; margin-bottom: -2px; transition: all .15s; }
.course-tab:hover { color: var(--navy); }
.course-tab-active { color: var(--navy) !important; border-bottom-color: var(--red) !important; }

/* ── ACCORDION ────────────────────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.accordion-header { padding: 15px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--off-white); user-select: none; transition: background .15s; }
.accordion-header:hover { background: var(--blue-pale); }
.accordion-header-left { display: flex; align-items: center; gap: 12px; }
.accordion-code { background: var(--blue); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 4px; font-weight: 700; white-space: nowrap; }
.accordion-chevron { color: var(--text-muted); transition: transform .2s; font-size: .9rem; }
.accordion-open .accordion-chevron { transform: rotate(180deg); }
.accordion-body { padding: 20px; background: #fff; border-top: 1px solid var(--border); font-size: .9rem; line-height: 1.7; }
.accordion-body h3, .accordion-body h4 { color: var(--navy); margin: 16px 0 8px; font-size: .95rem; }
.accordion-body ul, .accordion-body ol { padding-left: 20px; margin: 8px 0; }
.accordion-body li { margin-bottom: 4px; }
.accordion-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .85rem; }
.accordion-body th { background: var(--navy); color: #fff; padding: 8px 12px; text-align: left; }
.accordion-body td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.accordion-body pre { background: var(--off-white); padding: 14px; border-radius: var(--r); font-size: .83rem; overflow-x: auto; border-left: 3px solid var(--blue); margin: 10px 0; }
.accordion-body code { background: var(--off-white); padding: 2px 6px; border-radius: 3px; font-size: .84em; }

/* ── EXAM ─────────────────────────────────────────────────────────────────── */
.exam-header { background: var(--navy); color: #fff; padding: 20px 0; }
.exam-timer { font-size: 1.4rem; font-weight: 700; background: rgba(255,255,255,.15); padding: 8px 20px; border-radius: var(--r); }
.exam-timer-warning { background: var(--red) !important; }
.question-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px; }
.question-num { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.question-text { font-size: 1rem; font-weight: 600; margin-bottom: 20px; line-height: 1.55; }
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-item { padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--r); cursor: pointer; font-size: .9rem; display: flex; align-items: center; gap: 12px; transition: all .15s; }
.option-item:hover { border-color: var(--blue); background: var(--blue-pale); }
.option-selected { border-color: var(--blue) !important; background: var(--blue-pale) !important; font-weight: 600; }
.option-correct  { border-color: #4caf50 !important; background: #e8f5e9 !important; }
.option-wrong    { border-color: var(--red) !important; background: #fde8ea !important; }
.option-letter { width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.option-selected .option-letter { background: var(--blue); color: #fff; }
.q-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.q-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .15s; }
.q-dot-answered { background: var(--blue); }
.q-dot-current  { outline: 2px solid var(--blue); outline-offset: 2px; }
.result-circle { width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); border: 5px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; flex-direction: column; }
.result-score { font-size: 3rem; font-weight: 700; line-height: 1; }
.result-pass { color: var(--gold); font-size: 1.4rem; font-weight: 700; }
.result-fail { color: #ffcdd2; font-size: 1.4rem; font-weight: 700; }

/* ── PAYMENT BOX ──────────────────────────────────────────────────────────── */
.payment-box { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; text-align: center; }
.payment-amount { font-size: 2.4rem; font-weight: 700; color: var(--navy); line-height: 1; }

/* ── DASHBOARD ────────────────────────────────────────────────────────────── */
.dash-header { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; padding: 40px 0; }
.dash-stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; display: flex; align-items: center; gap: 16px; }
.dash-stat-icon { width: 52px; height: 52px; border-radius: var(--r); background: var(--blue-pale); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.dash-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; }
.dash-stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }
.enroll-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 24px; display: flex; align-items: center; gap: 20px; transition: box-shadow .15s; }
.enroll-item:hover { box-shadow: var(--shadow); }
.enroll-item-info { flex: 1; min-width: 0; }
.enroll-item-title { font-weight: 600; margin-bottom: 3px; }
.enroll-item-meta { font-size: .82rem; color: var(--text-muted); }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 3px; transition: width .4s; }

/* ── CERTIFICATE PAGE ─────────────────────────────────────────────────────── */
.cert-page-wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; }
.cert-actions-bar { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 24px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.cert-actions-bar h3 { font-size: 1rem; color: var(--navy); margin: 0; }
.certificate { background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 24px rgba(0,0,0,.1); position: relative; overflow: hidden; }
.cert-corner { position: absolute; width: 80px; height: 80px; }
.cert-corner.tl { top: 0; left: 0; border-top: 8px solid var(--blue); border-left: 8px solid var(--blue); }
.cert-corner.tr { top: 0; right: 0; border-top: 8px solid var(--blue); border-right: 8px solid var(--blue); }
.cert-corner.bl { bottom: 0; left: 0; border-bottom: 8px solid var(--blue); border-left: 8px solid var(--blue); }
.cert-corner.br { bottom: 0; right: 0; border-bottom: 8px solid var(--blue); border-right: 8px solid var(--blue); }
.cert-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 1; }
.cert-watermark-text { font-size: 96px; font-weight: 900; text-transform: uppercase; letter-spacing: .3em; color: var(--blue); opacity: .025; white-space: nowrap; transform: rotate(-20deg); }
.cert-inner { padding: 60px 80px; text-align: center; position: relative; z-index: 2; }
.cert-logo-img { width: 110px; height: auto; display: block; margin: 0 auto 10px; }
.cert-body-name { font-size: .72rem; color: #999; letter-spacing: .14em; text-transform: uppercase; }
.cert-divider { width: 80px; height: 3px; background: linear-gradient(90deg, var(--blue), #8ab4d0); margin: 18px auto; border-radius: 2px; }
.cert-this-is { font-size: .88rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .15em; margin-bottom: 6px; }
.cert-presented-to { font-size: 1rem; color: var(--text-muted); margin-bottom: 4px; }
.cert-candidate { font-family: var(--font-serif); font-size: 3rem; font-weight: 600; color: var(--navy); line-height: 1.1; margin: 8px 0; }
.cert-awarded-for { font-size: .98rem; color: var(--text-muted); margin-bottom: 10px; }
.cert-qualification { font-size: 1.55rem; font-weight: 700; color: var(--blue); margin-bottom: 5px; }
.cert-qual-code { font-family: monospace; font-size: .85rem; color: var(--text-muted); background: var(--blue-pale); padding: 4px 16px; border-radius: 14px; display: inline-block; margin-bottom: 18px; }
.cert-standard-ref { font-size: .8rem; color: var(--text-muted); max-width: 500px; margin: 0 auto 24px; line-height: 1.65; }
.cert-seals { display: flex; justify-content: center; align-items: flex-end; gap: 60px; margin: 28px 0 20px; }
.cert-seal-main { width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, var(--blue-dark), var(--blue)); color: #fff; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; box-shadow: 0 3px 12px rgba(74,127,165,.35); }
.cert-seal-text { font-size: .58rem; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; padding: 0 10px; }
.cert-date-col { text-align: center; }
.cert-date-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); display: block; }
.cert-date-val { font-size: .9rem; font-weight: 600; color: var(--navy); }
.cert-sigs { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 8px; }
.cert-sig { text-align: center; }
.cert-sig-line { border-top: 1px solid var(--blue); width: 160px; margin: 0 auto 5px; }
.cert-sig-name { font-size: .86rem; font-weight: 700; color: var(--navy); }
.cert-sig-title { font-size: .74rem; color: var(--text-muted); }
.cert-footer-ref { margin-top: 24px; padding-top: 14px; border-top: 1px solid #c5d8e8; }
.cert-ref-num { font-family: monospace; font-size: .7rem; color: var(--text-light); letter-spacing: .08em; }
.cert-verify-note { font-size: .7rem; color: var(--text-light); margin-top: 3px; }
.share-bar { background: var(--navy); color: #fff; padding: 18px 24px; border-radius: var(--r-lg); margin-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.share-bar h4 { margin: 0; font-size: .95rem; }
.share-btn { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 8px 18px; border-radius: var(--r); cursor: pointer; font-size: .82rem; font-weight: 600; transition: background .15s; }
.share-btn:hover { background: rgba(255,255,255,.25); }
.verify-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-top: 16px; }
.verify-card h4 { color: var(--blue); margin-bottom: 10px; font-size: 1rem; }
.verify-ref-box { font-family: monospace; font-size: 1rem; background: var(--off-white); padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--border); }

/* ── TRUST BAR ───────────────────────────────────────────────────────────── */
.trust-bar { padding: 36px 0; background: var(--white); }
.trust-bar-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.trust-logo {
  height: 30px; width: auto; max-width: 120px; object-fit: contain;
  filter: grayscale(100%) opacity(0.4);
  transition: filter .25s ease;
}
.trust-logo:hover { filter: grayscale(0%) opacity(1); }
@media (max-width: 768px) {
  .trust-bar-logos { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 8px; gap: 36px; }
  .trust-bar-logos::-webkit-scrollbar { display: none; }
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
.steps { display: flex; gap: 0; }
.step { flex: 1; padding: 28px 24px; text-align: center; position: relative; }
.step::after { content: "→"; position: absolute; right: -10px; top: 44px; font-size: 1.3rem; color: var(--text-light); }
.step:last-child::after { display: none; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.step h4 { margin-bottom: 6px; font-size: .95rem; }
.step p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ── INFO BOX ─────────────────────────────────────────────────────────────── */
.info-box { padding: 14px 18px; border-radius: var(--r); font-size: .88rem; margin-bottom: 16px; }
.info-box-blue   { background: var(--blue-pale);  border-left: 4px solid var(--blue); color: var(--navy); }
.info-box-gold   { background: var(--gold-light);  border-left: 4px solid var(--gold); color: #7f1d1d; }
.info-box-green  { background: #e8f5e9;             border-left: 4px solid #4caf50; color: #1b5e20; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-brand-sub  { font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.footer-brand-desc { font-size: .83rem; opacity: .7; line-height: 1.65; }
.footer-col h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .875rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; opacity: .5; }
.footer-disclaimer { background: rgba(0,0,0,.2); padding: 14px 24px; font-size: .72rem; line-height: 1.65; opacity: .6; }

/* ── NOTIFICATION ─────────────────────────────────────────────────────────── */
.notif { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: #fff; padding: 14px 20px; border-radius: var(--r-lg); font-size: .88rem; z-index: 2000; box-shadow: var(--shadow-lg); max-width: 320px; animation: notif-in .3s ease; }
.notif-success { background: #1a6b3c; }
.notif-error   { background: var(--red-dark); }
@keyframes notif-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── EMPTY STATE ──────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .hero-visual  { display: none; }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-search { display: none; }
  .nav-inner { height: 72px; }
  .nav-logo img { height: 62px; }
  .hero { padding: 48px 0; }
  .hero-stats { gap: 20px; }
  .cards-grid, .cards-grid-3 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step::after { display: none; }
  .cert-inner { padding: 40px 24px; }
  .cert-candidate { font-size: 2rem; }
  .cert-seals { gap: 24px; }
  .cert-sigs { gap: 24px; }
}
/* ── QUALIFICATION PATHWAYS ──────────────────────────────────────────────── */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .qual-grid { grid-template-columns: 1fr; } }
.qual-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  display: flex; overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.qual-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.qual-card-bar  { width: 6px; flex-shrink: 0; }
.qual-card-body { padding: 22px 20px; display: flex; flex-direction: column; flex: 1; }
.qual-level-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.qual-level-badge { border-radius: 20px; padding: 3px 10px; font-size: .72rem; font-weight: 700; color: #fff; letter-spacing: .04em; }
.qual-award     { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.qual-title     { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 0 0 3px; line-height: 1.3; }
.qual-subtitle  { font-size: .78rem; color: var(--text-muted); margin: 0 0 8px; font-style: italic; }
.qual-desc      { font-size: .83rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 10px; }
.qual-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--border); margin-bottom: 4px; flex-wrap: wrap; gap: 8px;
}
.qual-price-full     { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; }
.qual-price-discount { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.qual-save-badge     { background: #e8f5e9; color: #2e7d32; border-radius: 20px; padding: 3px 10px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.qual-meta-row {
  display: flex; gap: 14px; font-size: .8rem; color: var(--text-muted);
  padding: 8px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; flex-wrap: wrap;
}
.qual-cert-list  { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.qual-cert-item  {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: var(--r); background: var(--off-white); cursor: pointer; transition: background .15s; font-size: .8rem;
}
.qual-cert-item:hover { background: #e8edf5; }
.qual-cert-code  { font-weight: 700; color: var(--navy); font-size: .72rem; white-space: nowrap; }
.qual-cert-name  { color: var(--text-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ── JOB POSTINGS PAGE ───────────────────────────────────────────────────── */
.jobs-search-input {
  flex: 1; padding: 12px 18px; border-radius: var(--r); border: none;
  font-size: .95rem; font-family: var(--font-sans); outline: none; min-width: 180px;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.jobs-search-input::placeholder { color: rgba(255,255,255,.55); }
.jobs-search-input:focus { background: rgba(255,255,255,.22); border-color: var(--gold); }

.jobs-filter-select {
  padding: 7px 12px; border-radius: var(--r); border: 1px solid var(--border);
  font-size: .84rem; font-family: var(--font-sans); background: #fff;
  color: var(--text); cursor: pointer; outline: none;
}
.jobs-filter-select:focus { border-color: var(--navy); }

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.job-card {
  background: #fff; border-radius: var(--r-lg); padding: 22px 24px;
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-card-company { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.job-card-title   { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.3; }

.job-badge { border-radius: 20px; padding: 3px 10px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.job-badge-remote { background: #e0f2f1; color: #00695c; }

.job-card-details { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.job-detail-item  { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--text-muted); }
.job-detail-salary { color: var(--navy); font-weight: 600; }

.job-card-desc { font-size: .84rem; color: var(--text-muted); line-height: 1.6; margin: 0; flex: 1; }

.job-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-card-tags .tag { background: var(--off-white); color: var(--text-muted); border-radius: 4px; padding: 3px 8px; font-size: .73rem; }

.job-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; border-top: 1px solid var(--border); }
.job-posted { font-size: .77rem; color: var(--text-muted); }

/* Skeleton */
.job-card-skeleton { pointer-events: none; }
.skeleton-line { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 768px) {
  .jobs-grid { grid-template-columns: 1fr; }
  .jobs-search-input { min-width: 0; }
}

@media print {
  .nav, .top-bar, .cert-actions-bar, .share-bar, .verify-card, .footer, .notif { display: none !important; }
  body, .cert-page-wrap { background: #fff; padding: 0; margin: 0; }
  .certificate { box-shadow: none; border: none; }
}
