/* ============================================================
   YLG — Yvonne Lewis Group  |  Global Stylesheet
   ============================================================ */

:root {
  --navy:       #26152d;
  --navy-2:     #3a2043;
  --navy-3:     #1a0e1f;
  --gold:       #7d2488;
  --gold-dark:  #65166f;
  --gold-light: #a03db0;
  --cream:      #f8f6f8;
  --white:      #ffffff;
  --slate:      #615968;
  --ink:        #2b2430;
  --line:       #ded6e1;
  --soft:       #eee8f0;
  --mint:       #e7eef0;
  --rose:       #f0e3ea;
  --blue:       #e8e2f1;

  --success:    #1a7a4a;
  --success-bg: #e4f5ec;
  --warning:    #a05200;
  --warning-bg: #fef3e2;
  --danger:     #c1232a;
  --danger-bg:  #fdecea;
  --info:       #1a5fa8;
  --info-bg:    #e4eefb;

  --shadow-sm: 0 2px 8px rgba(38,21,45,.07);
  --shadow:    0 8px 26px rgba(38,21,45,.10);
  --shadow-lg: 0 18px 42px rgba(38,21,45,.15);
  --radius:    8px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  text-wrap: pretty;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

p  { margin: 0 0 1rem; color: var(--slate); }
ul { margin: 0; padding: 0; }
li { list-style: none; }

h1, h2, h3, h4, .serif {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  line-height: 1.07;
  color: var(--navy);
  letter-spacing: -.01em;
}
h1 { margin: 0;          font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 900px; }
h2 { margin: 0 0 1rem;   font-size: clamp(1.9rem, 3.8vw, 3.2rem); }
h3 { margin: 0 0 .65rem; font-size: 1.32rem; }
h4 { margin: 0 0 .4rem;  font-size: 1.05rem; }

/* ─── Layout ──────────────────────────────────── */
.page { min-height: 100vh; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.section       { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.dark  { background: var(--navy); color: var(--white); }
.section.muted { background: var(--soft); }

.section.dark h1,
.section.dark h2,
.section.dark h3,
.section.dark p { color: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 38px;
}
.section-head p { max-width: 560px; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ─── Header / Nav ────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,246,248,.95);
  border-bottom: 1px solid rgba(38,21,45,.09);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
  min-width: max-content;
}
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--white) url("assets/ylg-logo.png") center/contain no-repeat;
  color: transparent;
  font-family: Fraunces,Georgia,serif;
  font-weight: 800;
  border: 1px solid rgba(38,21,45,.12);
  overflow: hidden;
}
.brand small { display: block; color: var(--slate); font-weight: 600; font-size: .74rem; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--slate);
  font-size: .92rem;
  font-weight: 700;
  transition: background 140ms, color 140ms;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); background: var(--soft); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  margin-left: 8px;
  padding: 9px 16px !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--navy);
  cursor: pointer;
}

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: .94rem;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(38,21,45,.18); }
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .86rem; }

.btn-primary   { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.44); }
.btn-secondary:hover { background: rgba(255,255,255,.1); }

.btn-outline   { background: var(--white); border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-ghost  { background: transparent; border-color: var(--line); color: var(--slate); }
.btn-ghost:hover { background: var(--soft); color: var(--navy); }

.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }

/* ─── Eyebrow ─────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #d4a0df;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .1em;
}
.eyebrow.dark { color: var(--gold); }

/* ─── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26,14,31,.97) 0%, rgba(26,14,31,.86) 42%, rgba(26,14,31,.48) 68%, rgba(26,14,31,.10) 100%),
    var(--hero-image, url("https://images.unsplash.com/photo-1573497491208-6b1acb260507?auto=format&fit=crop&w=1800&q=80")) center/cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 52% 70% at 80% 48%, rgba(125,36,136,.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  padding: 52px 0 44px;
}
.page-hero .hero-content { padding: 80px 0 72px; }

.hero h1,.hero h2,.hero h3,.hero p { color: var(--white); }
.hero > .hero-content > p { max-width: 700px; margin: 20px 0 0; font-size: 1.14rem; color: rgba(255,255,255,.84); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ─── Stats bar ───────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  margin-top: 24px;
  overflow: hidden;
}
.stat { padding: 22px 20px; background: rgba(255,255,255,.07); }
.stat strong { display: block; font-family: Fraunces,Georgia,serif; font-size: 2rem; color: var(--white); }
.stat span   { color: rgba(255,255,255,.72); font-weight: 700; font-size: .88rem; }

/* ─── Route panel ─────────────────────────────── */
.route-panel { position: relative; margin-top: -36px; z-index: 5; }
.route-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.route-card  {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 160ms, transform 160ms;
}
.route-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.route-card strong { color: var(--gold-dark); font-weight: 800; font-size: .92rem; display: flex; align-items: center; gap: 6px; }

/* ─── Cards ───────────────────────────────────── */
.card, .course-card, .team-card, .form-card, .faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card, .course-card, .team-card { padding: 24px; }
.card:hover, .course-card:hover { box-shadow: var(--shadow); }

/* ─── Icon box ────────────────────────────────── */
.icon-box {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--soft);
  color: var(--gold-dark);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-box.lg { width: 58px; height: 58px; }

/* ─── Image frame ─────────────────────────────── */
.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 440px;
  background: var(--navy);
}
.image-frame img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.image-note {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  padding: 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(38,21,45,.86);
  backdrop-filter: blur(10px);
}
.image-note strong { display: block; font-family: Fraunces,Georgia,serif; font-size: 1.35rem; margin-bottom: 4px; }
.image-note span { color: rgba(255,255,255,.78); font-size: .9rem; }

/* ─── Steps ───────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; counter-reset: steps; }
.step  {
  position: relative;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: steps;
}
.step::before {
  content: counter(steps,"0");
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 9px;
  background: var(--navy);
  color: #e8c5ef;
  font-weight: 900;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.15rem; }

/* ─── Specialism grid ─────────────────────────── */
.specialism {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 160px;
}
.specialism:nth-child(2n)  { background: #ece8f0; }
.specialism:nth-child(3n)  { background: var(--soft); }
.specialism:nth-child(4n)  { background: var(--rose); }
.specialism:nth-child(5n)  { background: var(--blue); }
.specialism:nth-child(6n)  { background: var(--mint); }
.specialism h3 { font-size: 1.1rem; }

/* ─── CTA Band ────────────────────────────────── */
.cta-band {
  padding: 58px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(100deg,rgba(38,21,45,.96),rgba(38,21,45,.80)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}
.cta-band h2,.cta-band p { color: var(--white); }
.cta-band p { max-width: 600px; color: rgba(255,255,255,.82); margin: 0; }
.cta-band .btn { flex-shrink: 0; }

/* ─── Proof list ──────────────────────────────── */
.proof-list { display: grid; gap: 14px; margin: 20px 0 0; }
.proof-list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--ink); font-weight: 700;
}
.proof-list i { flex-shrink: 0; margin-top: 2px; color: var(--gold-dark); }

/* ─── Pill ────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 800;
  font-size: .88rem;
  border: 1px solid var(--line);
}
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

/* ─── Badge ───────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .74rem; font-weight: 800;
}
.badge-purple { background: var(--soft);        color: var(--gold-dark); }
.badge-green  { background: var(--success-bg);  color: var(--success);   }
.badge-orange { background: var(--warning-bg);  color: var(--warning);   }
.badge-red    { background: var(--danger-bg);   color: var(--danger);    }
.badge-blue   { background: var(--info-bg);     color: var(--info);      }
.badge-navy   { background: var(--navy);        color: var(--white);     }

/* ─── Tags ────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 5px;
  background: var(--soft); color: var(--slate);
  font-size: .8rem; font-weight: 700;
  border: 1px solid var(--line);
}

/* ─── FAQ ─────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.faq-item { overflow: hidden; }
.faq-question {
  width: 100%; padding: 18px 20px;
  border: 0; background: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; color: var(--navy); font-weight: 800; font-family: inherit;
  cursor: pointer; font-size: .96rem;
}
.faq-answer { display: none; padding: 0 20px 18px; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { color: var(--gold-dark); }

/* ─── Form ────────────────────────────────────── */
.form-card { padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1/-1; }

label { color: var(--navy); font-weight: 800; font-size: .9rem; }

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: .94rem;
  padding: 11px 13px;
  transition: border-color 140ms, box-shadow 140ms;
}
input::placeholder, textarea::placeholder { color: #b0a8b6; }
textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(125,36,136,.14);
}

.form-note  { margin-top: 14px; font-size: .9rem; }
.success-message {
  display: none; margin-top: 16px; padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--success-bg); color: var(--success); font-weight: 800;
  border: 1px solid rgba(26,122,74,.2);
}

/* ─── Team card ───────────────────────────────── */
.team-card { text-align: center; }
.avatar {
  width: 80px; height: 80px;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy);
  color: #e8c5ef;
  font-family: Fraunces,Georgia,serif;
  font-size: 1.6rem; font-weight: 800;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Course card ─────────────────────────────── */
.course-card { display: grid; gap: 12px; }
.course-meta { display: grid; gap: 7px; padding-top: 6px; border-top: 1px solid var(--line); }
.course-meta span { color: var(--slate); font-size: .9rem; }

/* ─── Contact ─────────────────────────────────── */
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white);
}
.contact-item i { color: var(--gold-dark); margin-top: 2px; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--navy); font-weight: 800; }
.contact-item p { margin: 2px 0 0; font-size: .92rem; }

/* ─── Page hero variant ───────────────────────── */
.page-hero { }

.split-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }

/* ─── CV Upload Widget ────────────────────────── */
.cv-upload-widget {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 36px;
  backdrop-filter: blur(8px);
  max-width: 700px;
}
.cv-upload-widget h3 { color: var(--white); font-size: 1.22rem; margin: 0 0 5px; }
.cv-upload-widget > p { color: rgba(255,255,255,.76); font-size: .93rem; margin: 0 0 18px; }

.cv-drop-zone {
  border: 2px dashed rgba(255,255,255,.38);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 180ms, border-color 180ms;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cv-drop-zone:hover, .cv-drop-zone.drag-over {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.65);
}
.cv-drop-zone i { color: rgba(255,255,255,.7); }
.cv-drop-zone p { color: rgba(255,255,255,.7); margin: 0; font-size: .9rem; }
.cv-drop-zone strong { color: var(--white); }
.cv-drop-zone input[type="file"] { display: none; }

.cv-loading { display: none; margin-top: 18px; text-align: center; color: rgba(255,255,255,.8); font-weight: 700; }
.cv-loading .spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cv-results {
  display: none;
  margin-top: 20px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.cv-results.visible { display: block; }
.cv-results-head {
  background: var(--navy);
  padding: 14px 18px;
  color: var(--white);
  font-weight: 800;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cv-results-body { padding: 4px 0; }
.cv-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 120ms;
}
.cv-job-row:last-child { border-bottom: 0; }
.cv-job-row:hover { background: var(--cream); }
.cv-job-info h4 { margin: 0 0 2px; color: var(--navy); font-size: .97rem; }
.cv-job-info p  { margin: 0; font-size: .82rem; color: var(--slate); }
.cv-match-pct   { font-weight: 900; color: var(--gold-dark); font-size: 1rem; white-space: nowrap; }

/* ─── Job card (public) ───────────────────────── */
.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 160ms, transform 160ms;
}
.job-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.job-card-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: .85rem; color: var(--slate);
}
.job-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ─── Testimonial ─────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 14px; right: 20px;
  font-family: Fraunces,Georgia,serif;
  font-size: 5.5rem; color: var(--soft);
  line-height: 1; pointer-events: none;
}
.testimonial-text {
  font-size: 1.05rem; color: var(--ink);
  font-style: italic; margin: 0 0 20px; line-height: 1.72;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar { width: 48px; height: 48px; font-size: 1rem; margin: 0; flex-shrink: 0; }
.testimonial-author strong { display: block; color: var(--navy); font-size: .93rem; }
.testimonial-author span { color: var(--slate); font-size: .82rem; }

/* ─── Blog card ───────────────────────────────── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 160ms, transform 160ms;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--slate); margin-bottom: 10px; }
.blog-meta span { display: inline-flex; align-items: center; gap: 4px; }
.blog-card-body h3 { font-size: 1.1rem; margin: 0 0 8px; }
.blog-card-body p  { font-size: .9rem; margin: 0 0 16px; flex: 1; }
.blog-read-more {
  color: var(--gold-dark); font-weight: 800; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: auto;
}

/* ─── Calendar ────────────────────────────────── */
.calendar-wrapper {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: var(--navy);
  color: var(--white);
}
.calendar-header h3 { color: var(--white); font-size: 1.15rem; margin: 0; }
.cal-nav {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.24);
  background: transparent;
  border-radius: 7px;
  color: var(--white);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 140ms;
}
.cal-nav:hover { background: rgba(255,255,255,.14); }

.calendar-grid {
  padding: 16px 20px 20px;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.cal-weekdays span {
  text-align: center;
  font-size: .74rem;
  font-weight: 800;
  color: var(--slate);
  padding: 6px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 120ms, color 120ms, border-color 120ms;
  min-width: 0;
}
.cal-day:hover:not(.disabled):not(.empty) { background: var(--soft); border-color: var(--line); }
.cal-day.available { color: var(--navy); }
.cal-day.available:hover { background: #f0e8f3; border-color: var(--gold); }
.cal-day.selected { background: var(--gold); color: var(--white); border-color: var(--gold); }
.cal-day.disabled { color: #ccc; cursor: not-allowed; }
.cal-day.empty    { cursor: default; }
.cal-day.today    { border-color: var(--gold-dark); }

.time-slots {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
}
.time-slots h4 { margin: 0 0 14px; color: var(--navy); font-size: .96rem; }
.time-slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.time-slot {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.time-slot:hover { background: var(--soft); border-color: var(--gold); }
.time-slot.selected { background: var(--gold); color: var(--white); border-color: var(--gold); }
.time-slot.booked   { background: #f4f4f4; color: #bbb; cursor: not-allowed; border-color: #eee; text-decoration: line-through; }

/* ─── Booking confirmation ────────────────────── */
.booking-confirm {
  display: none;
  text-align: center;
  padding: 48px 32px;
}
.booking-confirm.visible { display: block; }
.booking-confirm .confirm-icon {
  width: 72px; height: 72px;
  background: var(--success-bg);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 22px;
  color: var(--success);
}

/* ─── Dashboard layout ────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f4f1f6;
}
.app-sidebar {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--white);
}
.sidebar-brand-mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--white) url("assets/ylg-logo.png") center/contain no-repeat;
  flex-shrink: 0;
}
.sidebar-brand small { display: block; color: rgba(255,255,255,.54); font-size: .72rem; font-weight: 600; }

.sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav a, .sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.64);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: background 120ms, color 120ms;
}
.sidebar-nav a:hover,
.sidebar-nav button:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.sidebar-nav a.active,
.sidebar-nav button.active { background: rgba(125,36,136,.3); color: var(--white); }
.sidebar-nav a i, .sidebar-nav button i { flex-shrink: 0; }

.sidebar-section-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.34);
  padding: 14px 12px 6px;
}
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.app-main { display: flex; flex-direction: column; min-height: 100vh; }
.app-topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  min-height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: var(--shadow-sm);
}
.app-topbar h1 { font-size: 1.25rem; margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.app-content { padding: 32px; flex: 1; }

/* ─── Dashboard panels ────────────────────────── */
.dash-panel { display: none; }
.dash-panel.active { display: block; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-label { font-size: .82rem; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.stat-card .stat-value { font-family: Fraunces,Georgia,serif; font-size: 2rem; color: var(--navy); font-weight: 700; }
.stat-card .stat-change { font-size: .8rem; color: var(--success); font-weight: 800; margin-top: 4px; }
.stat-card .stat-change.down { color: var(--danger); }

.dash-grid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; }
.dash-section-title { font-size: 1rem; font-weight: 800; color: var(--navy); margin: 0 0 14px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: .9rem;
}
.data-table th {
  background: var(--cream);
  color: var(--navy);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
.data-table td { border-bottom: 1px solid var(--line); color: var(--ink); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #faf8fc; }

.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--shadow-sm);
}
.table-wrap-head {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--line);
}
.table-wrap-head h3 { margin: 0; font-size: 1rem; }

.activity-list { display: grid; gap: 0; }
.activity-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child { border-bottom: 0; }
.activity-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: .85rem;
}
.activity-dot.green  { background: var(--success-bg); color: var(--success); }
.activity-dot.purple { background: var(--soft); color: var(--gold-dark); }
.activity-dot.blue   { background: var(--info-bg); color: var(--info); }
.activity-dot.orange { background: var(--warning-bg); color: var(--warning); }
.activity-text strong { display: block; font-size: .9rem; color: var(--navy); }
.activity-text span   { font-size: .8rem; color: var(--slate); }

.profile-avatar-area {
  display: flex; align-items: center; gap: 20px; margin-bottom: 28px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.profile-avatar-big {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--navy);
  color: #e8c5ef;
  display: grid; place-items: center;
  font-family: Fraunces,Georgia,serif;
  font-size: 2rem; font-weight: 800;
  flex-shrink: 0;
}

/* ─── CV Upload (Dashboard) ───────────────────── */
.cv-upload-area {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 180ms, border-color 180ms;
  background: var(--cream);
}
.cv-upload-area:hover, .cv-upload-area.drag-over {
  background: var(--soft);
  border-color: var(--gold);
}
.cv-upload-area i { color: var(--gold-dark); margin-bottom: 8px; }
.cv-upload-area h4 { margin: 0 0 4px; font-size: 1rem; }
.cv-upload-area p { margin: 0; font-size: .88rem; }

.ai-results-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.ai-results-head {
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 800; font-size: .92rem;
}
.ai-skill-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: .8rem; font-weight: 700;
}
.skill-detected { background: var(--success-bg); color: var(--success); }
.skill-missing   { background: var(--warning-bg); color: var(--warning); }

.job-match-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 160ms, transform 160ms;
}
.job-match-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.match-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.match-score {
  background: var(--soft); color: var(--gold-dark);
  font-weight: 900; font-size: .88rem;
  padding: 5px 11px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.match-score.high { background: var(--success-bg); color: var(--success); }

.training-rec-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.training-rec-icon {
  width: 48px; height: 48px;
  background: var(--soft);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--gold-dark); flex-shrink: 0;
}

/* ─── Notification bubble ─────────────────────── */
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  position: absolute; top: 6px; right: 6px;
}

/* ─── Progress bar ────────────────────────────── */
.progress-bar {
  height: 7px; background: var(--line); border-radius: 99px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--gold); border-radius: 99px;
  transition: width 600ms ease;
}
.progress-fill.green { background: var(--success); }

/* ─── Tabs ────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 16px;
  border: 0; background: transparent;
  color: var(--slate); font-weight: 700; font-size: .92rem;
  cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 140ms, border-color 140ms;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--gold-dark); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Status chips ────────────────────────────── */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: .76rem; font-weight: 800; }
.status-pending  { background: var(--warning-bg); color: var(--warning); }
.status-active   { background: var(--success-bg); color: var(--success); }
.status-rejected { background: var(--danger-bg);  color: var(--danger); }
.status-draft    { background: var(--soft);        color: var(--slate); }
.status-review   { background: var(--info-bg);     color: var(--info); }

/* ─── Search input ────────────────────────────── */
.search-wrap { position: relative; }
.search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.search-wrap input { padding-left: 38px; }

/* ─── Toggle / Checkbox ───────────────────────── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-label strong { display: block; font-size: .92rem; color: var(--navy); }
.toggle-label span   { font-size: .82rem; color: var(--slate); }

/* ─── YLG Chat Bot ────────────────────────────── */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  box-shadow: var(--shadow-lg);
  border-radius: 999px;
}
.chat-panel {
  position: fixed; right: 22px; bottom: 84px; z-index: 80;
  width: min(400px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 110px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(38,21,45,.28);
}
.chat-panel.open { display: grid; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  background: var(--navy); color: var(--white);
}
.chat-title { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1rem; }
.chat-status { font-size: .76rem; color: #a0e3b8; font-weight: 700; }
.chat-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: 7px;
  background: transparent; color: var(--white); cursor: pointer;
}
.chat-messages {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; padding: 16px;
  background: #f5f2f7;
  scroll-behavior: smooth;
}
.chat-message {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 12px;
  line-height: 1.48;
  font-size: .92rem;
  animation: chatIn 180ms ease;
}
@keyframes chatIn { from { opacity:0; transform: translateY(6px); } }
.chat-message.bot  { background: var(--white); border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-radius: 4px 12px 12px 12px; }
.chat-message.user { background: var(--gold); color: var(--white); align-self: flex-end; border-radius: 12px 4px 12px 12px; }
.chat-message a.btn { margin-top: 10px; font-size: .82rem; min-height: 34px; padding: 7px 12px; }

.quick-questions {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 0 14px 12px;
  background: #f5f2f7;
}
.quick-questions button {
  border: 1.5px solid var(--line); border-radius: 99px;
  background: var(--white); color: var(--navy);
  font-weight: 800; font-size: .78rem;
  padding: 6px 11px; cursor: pointer;
  font-family: inherit;
  transition: background 120ms, border-color 120ms;
}
.quick-questions button:hover { background: var(--soft); border-color: var(--gold); }

.chat-form {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.chat-form input { font-size: .92rem; }
.chat-form .btn  { min-height: 42px; padding-inline: 14px; }

/* ─── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--navy-3);
  color: var(--white);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer h3   { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer p    { color: rgba(255,255,255,.64); font-size: .9rem; }
.site-footer a    { color: rgba(255,255,255,.64); font-size: .9rem; }
.site-footer a:hover { color: var(--white); }
.footer-links  { display: flex; flex-direction: column; gap: 8px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center;
  color: rgba(255,255,255,.64);
  transition: background 140ms, color 140ms;
}
.footer-social a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.footer-app-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.footer-app-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 5px 12px; border-radius: 20px; text-decoration: none;
  transition: background 140ms, color 140ms;
}
.footer-app-links a:hover { background: rgba(255,255,255,.16); color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 22px;
  color: rgba(255,255,255,.44);
  font-size: .84rem;
}

/* ─── Hero split layout ──────────────────────── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 52px;
  align-items: center;
}
.hero-accent { color: #c084fc; font-style: normal; }
.hero-left { max-width: 620px; }
.hero-left h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; }
.hero-right { display: flex; justify-content: flex-end; }
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(18px);
  width: 100%;
  box-shadow: 0 24px 56px rgba(0,0,0,.38), 0 0 0 1px rgba(160,61,176,.18);
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c084fc;
  font-weight: 800;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-card-head i { width: 15px; height: 15px; flex-shrink: 0; }
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.86);
  font-size: .875rem;
  font-weight: 500;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.hero-trust-item i { color: #4ade80; width: 15px; height: 15px; flex-shrink: 0; }
.hero-card-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(125,36,136,.12);
}
.hero-card-footer a {
  color: #c084fc;
  font-weight: 800;
  font-size: .86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap 150ms;
}
.hero-card-footer a:hover { gap: 10px; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right  { display: none; }
}

/* ─── CV Callout Strip (hero) ─────────────────── */
.cv-callout {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius);
  background: rgba(125,36,136,.16);
  border: 1px solid rgba(160,61,176,.42);
  backdrop-filter: blur(10px);
  max-width: 500px;
  text-decoration: none;
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.cv-callout:hover {
  background: rgba(125,36,136,.26);
  border-color: rgba(160,61,176,.65);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.cv-callout-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--gold);
  display: grid; place-items: center;
  color: var(--white);
  flex-shrink: 0;
}
.cv-callout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cv-callout-text strong {
  font-size: .94rem;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}
.cv-callout-text span {
  font-size: .80rem;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-callout-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 800;
  color: #c084fc;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.16);
}

/* ─── Specialism Cards (dark fluid grid) ──────── */
.specialisms-section {
  background: var(--navy-3);
  position: relative;
  overflow: hidden;
}
.specialisms-section::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(125,36,136,.18) 0%, transparent 70%);
  pointer-events: none;
}
.specialisms-section .section-head h2,
.specialisms-section .section-head p { color: var(--white); }
.specialisms-section .eyebrow { color: #c084fc; }

.specialism-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.specialism-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--sc-from), var(--sc-to));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.07);
  overflow: hidden;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(.34,1.4,.64,1), box-shadow 220ms ease, border-color 220ms;
}
.specialism-card::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sc-accent, #fff) 0%, transparent 70%);
  opacity: .07;
  transition: opacity 220ms, transform 220ms;
  pointer-events: none;
}
.specialism-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 16px 38px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}
.specialism-card:hover::after {
  opacity: .16;
  transform: scale(1.2);
}
.sc-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  color: var(--sc-accent, rgba(255,255,255,.9));
  flex-shrink: 0;
}
.sc-icon i { width: 22px; height: 22px; }
.specialism-card h3 {
  color: var(--white);
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.22;
}
.specialism-card p {
  color: rgba(255,255,255,.62);
  font-size: .875rem;
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--sc-accent, rgba(255,255,255,.7));
  margin-top: 4px;
  opacity: .72;
  transition: opacity 160ms, gap 160ms;
}
.specialism-card:hover .sc-link { opacity: 1; gap: 8px; }

@media (max-width: 860px) {
  .specialism-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .specialism-grid { grid-template-columns: 1fr; }
  .cv-callout { max-width: 100%; }
  .cv-callout-cta { display: none; }
}

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .app-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    padding: 14px 18px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-cta { margin-left: 0; text-align: center; }

  .route-grid, .grid-3, .grid-4, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats  { grid-template-columns: 1fr 1fr; }
  .section-head, .cta-band { display: block; }
  .cta-band .btn { margin-top: 16px; }
}

@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-sidebar.open { display: flex; position: fixed; inset: 0; z-index: 100; width: 280px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1140px); }
  .hero-content { padding: 56px 0 46px; }
  .hero-actions, .form-grid, .split-list,
  .route-grid, .grid-3, .grid-4, .steps,
  .stats, .footer-grid, .stats-row { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .section { padding: 64px 0; }
  .route-panel { margin-top: 16px; }
  .cta-band { padding: 32px 24px; }
  .app-content { padding: 20px 16px; }
  .app-topbar { padding: 0 16px; }
}

/* ─── Mobile: collapse inline grid sections ─────── */
@media (max-width: 768px) {
  /* Catch inline style="...grid-template-columns:1fr 1fr..." patterns */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Blog / sidebar two-column split */
  [style*="grid-template-columns:1fr 300px"],
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns:1fr 340px"] {
    grid-template-columns: 1fr !important;
  }
  /* AI-match / promo "1fr auto" banners */
  [style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  /* Image frames inside collapsed sections */
  .image-frame { min-height: 260px; }
  .image-frame img { min-height: 260px; }
  /* Candidate FAQ 2-column grid */
  .faq-full { grid-template-columns: 1fr !important; }
  /* Nav mobile tweaks */
  .site-nav { gap: 8px; }
  .nav-links a { font-size: .9rem; }
  /* Ensure cta-band stacks cleanly */
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
}
