:root{
  --ink:#10213f;
  --muted:#5c6d89;
  --line:#dfe7f4;
  --soft:#f5f8ff;
  --soft-2:#eef2ff;
  --blue:#3564ff;
  --violet:#6a5cff;
  --white:#fff;
  --success:#167d64;
  --shadow:0 26px 70px rgba(24,45,90,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 14% 0%,rgba(53,100,255,.11),transparent 28%),
    radial-gradient(circle at 90% 12%,rgba(106,92,255,.09),transparent 26%),
    #f7f9fd;
  line-height:1.5;
}
a{color:inherit}
.cv-topbar{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(223,231,244,.9);
}
.cv-topbar-inner{
  width:min(1180px,calc(100% - 32px));
  min-height:72px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.cv-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:850;letter-spacing:-.02em}
.cv-brand img{width:34px;height:34px;object-fit:contain;border-radius:9px}
.cv-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cv-btn{border:1px solid var(--line);background:#fff;color:var(--ink);padding:10px 14px;border-radius:12px;font-weight:750;font-size:14px;text-decoration:none;cursor:pointer;transition:.2s ease;display:inline-flex;align-items:center;gap:8px}
.cv-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(24,45,90,.08)}
.cv-btn.primary{border-color:transparent;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));box-shadow:0 10px 24px rgba(76,91,255,.24)}
.cv-btn.lang{padding:10px 12px}
.cv-page{
  width:min(1180px,calc(100% - 32px));
  margin:34px auto 56px;
  background:#fff;border:1px solid rgba(223,231,244,.95);border-radius:28px;box-shadow:var(--shadow);overflow:hidden;
}
.cv-hero{position:relative;padding:46px 52px 36px;background:linear-gradient(145deg,#f8faff 0%,#eef3ff 48%,#f4f0ff 100%);border-bottom:1px solid var(--line)}
.cv-hero:after{content:"";position:absolute;right:-80px;top:-110px;width:300px;height:300px;border-radius:50%;background:linear-gradient(135deg,rgba(53,100,255,.18),rgba(106,92,255,.12));filter:blur(3px)}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center}
.name{font-size:clamp(38px,5vw,64px);line-height:.98;letter-spacing:-.055em;margin:0 0 10px;font-weight:900}
.role{font-size:20px;font-weight:800;color:var(--blue);margin-bottom:18px;letter-spacing:-.02em}
.summary{font-size:16px;color:#43536e;max-width:790px;margin:0 0 22px}
.contact-row{display:flex;flex-wrap:wrap;gap:9px 12px}
.contact-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(53,100,255,.12);background:rgba(255,255,255,.78);padding:8px 10px;border-radius:999px;font-size:12.5px;font-weight:700;color:#40506d;text-decoration:none}
.contact-pill:hover{border-color:rgba(53,100,255,.32)}

.contact-row-wide{margin-top:22px;width:100%;}
@media (min-width: 980px){
  .contact-row-wide{flex-wrap:nowrap;gap:8px;justify-content:space-between;}
  .contact-row-wide .contact-pill{font-size:11.5px;padding:7px 9px;white-space:nowrap;flex:0 1 auto;}
}
.photo-frame{width:150px;height:150px;border-radius:36px;padding:7px;background:linear-gradient(135deg,var(--blue),var(--violet));box-shadow:0 18px 40px rgba(63,75,160,.18);transform:rotate(2deg)}
.photo-frame img{width:100%;height:100%;object-fit:cover;border-radius:30px;background:#e7e7e7;transform:rotate(-2deg)}
.impact-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:28px}
.impact{background:rgba(255,255,255,.78);border:1px solid rgba(53,100,255,.1);border-radius:16px;padding:13px 14px}
.impact b{display:block;font-size:18px;letter-spacing:-.03em}
.impact span{display:block;font-size:11.5px;color:var(--muted);font-weight:650;margin-top:2px}
.cv-body{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,.85fr);gap:34px;padding:40px 52px 48px}
.section{margin-bottom:32px}
.section:last-child{margin-bottom:0}
.section-title{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:900;letter-spacing:-.025em;margin:0 0 18px;text-transform:uppercase}
.section-title:before{content:"";width:34px;height:5px;border-radius:999px;background:linear-gradient(90deg,var(--blue),var(--violet));flex:0 0 auto}
.timeline{display:flex;flex-direction:column;gap:15px}
.job{position:relative;border:1px solid var(--line);border-radius:20px;padding:20px 20px 18px;background:#fff;break-inside:avoid}
.job:before{content:"";position:absolute;left:-1px;top:18px;bottom:18px;width:4px;border-radius:0 6px 6px 0;background:linear-gradient(180deg,var(--blue),var(--violet))}
.job-head{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;margin-bottom:9px}
.job h3{font-size:17px;letter-spacing:-.02em;margin:0 0 3px}
.job-role{font-size:13px;color:#4f607b;font-weight:750}
.job-date{text-align:right;font-size:12px;color:var(--blue);font-weight:850;white-space:nowrap}
.job-place{font-size:11.5px;color:#8591a6;margin-top:2px}
.job ul{margin:11px 0 0;padding-left:18px;color:#354762}
.job li{margin:6px 0;font-size:13.2px}
.stack{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.chip{font-size:10.5px;font-weight:750;color:#40516e;background:#f2f5fa;border:1px solid #e7ecf5;padding:5px 8px;border-radius:999px}
.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.project{border:1px solid var(--line);border-radius:17px;padding:15px;background:linear-gradient(180deg,#fff,#fbfcff);break-inside:avoid}
.project h4{font-size:13.5px;margin:0 0 7px;line-height:1.35}
.project p{font-size:11.5px;color:var(--muted);margin:0 0 9px}
.project .project-link{font-size:11px;font-weight:800;color:var(--blue);text-decoration:none}
.side-card{background:linear-gradient(180deg,#f8faff,#fff);border:1px solid var(--line);border-radius:20px;padding:18px;margin-bottom:14px;break-inside:avoid}
.side-card h3{font-size:14px;letter-spacing:-.01em;margin:0 0 13px}
.skill-group{margin-bottom:12px}
.skill-group:last-child{margin-bottom:0}
.skill-label{font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:#8a96aa;font-weight:850;margin-bottom:6px}
.skill-list{display:flex;flex-wrap:wrap;gap:6px}
.skill{font-size:11.5px;background:#fff;border:1px solid #e4eaf4;border-radius:9px;padding:6px 8px;font-weight:700;color:#465772}
.edu{padding:10px 0;border-top:1px solid #e7edf6}
.edu:first-of-type{border-top:0;padding-top:0}
.edu b{display:block;font-size:12.5px;line-height:1.35}
.edu span{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.cert-list,.lang-list,.assoc-list{display:flex;flex-direction:column;gap:8px}
.cert,.lang,.assoc{font-size:11.8px;color:#42536e}
.cert b,.lang b,.assoc b{color:var(--ink)}
.lang{display:flex;justify-content:space-between;gap:14px;border-bottom:1px dashed #e3e9f3;padding-bottom:6px}
.lang:last-child{border-bottom:0;padding-bottom:0}
.level{font-weight:850;color:var(--blue)}
.note{font-size:10px;color:#929db0;margin-top:9px}
.cv-footer{border-top:1px solid var(--line);padding:20px 52px 25px;display:flex;justify-content:space-between;gap:20px;font-size:11.5px;color:#7e8ba0;background:#fcfdff}
.cv-footer b{color:var(--ink)}
@media(max-width:900px){
  .cv-page{width:min(760px,calc(100% - 20px));margin-top:18px;border-radius:22px}
  .cv-hero{padding:34px 28px 28px}.cv-body{grid-template-columns:1fr;padding:30px 28px 38px}.hero-grid{grid-template-columns:1fr}.photo-frame{width:120px;height:120px;border-radius:28px}.impact-strip{grid-template-columns:1fr 1fr}.project-grid{grid-template-columns:1fr}.cv-footer{padding:18px 28px;flex-direction:column}.cv-topbar-inner{width:calc(100% - 20px)}
}
@media(max-width:620px){
  .cv-topbar-inner{min-height:64px}.cv-brand span{display:none}.cv-actions .hide-mobile{display:none}.cv-btn{font-size:12px;padding:9px 10px}
  .cv-hero{padding:28px 20px 24px}.cv-body{padding:26px 20px 32px}.name{font-size:40px}.role{font-size:16px}.summary{font-size:14px}.impact-strip{grid-template-columns:1fr 1fr}.job-head{grid-template-columns:1fr}.job-date{text-align:left}.contact-row{gap:7px}.contact-pill{font-size:11.5px}.cv-footer{padding:16px 20px}
}
@media print{
  @page{size:A4;margin:9mm}
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body{background:#fff;font-size:9.4pt}
  .cv-topbar{display:none!important}
  .cv-page{width:auto;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible}
  .cv-hero{padding:7mm 8mm 6mm;background:linear-gradient(145deg,#f8faff,#eef3ff 48%,#f4f0ff)}
  .cv-hero:after{display:none}.hero-grid{grid-template-columns:1fr auto;gap:6mm}.name{font-size:29pt}.role{font-size:12pt;margin-bottom:3mm}.summary{font-size:8.6pt;margin-bottom:4mm;line-height:1.4}.photo-frame{width:27mm;height:27mm;border-radius:8mm;padding:1.3mm}.photo-frame img{border-radius:6.8mm}.contact-pill{font-size:7pt;padding:1.5mm 2mm}.impact-strip{gap:2mm;margin-top:4mm}.impact{padding:2.2mm 2.5mm;border-radius:3mm}.impact b{font-size:10pt}.impact span{font-size:6.6pt}
  .cv-body{grid-template-columns:minmax(0,1.7fr) minmax(55mm,.85fr);gap:5mm;padding:6mm 8mm 7mm}.section{margin-bottom:5mm}.section-title{font-size:10.5pt;margin-bottom:3mm}.section-title:before{width:8mm;height:1mm}
  .timeline{gap:2.5mm}.job{padding:3.2mm 3.5mm 3mm;border-radius:3mm}.job:before{top:3mm;bottom:3mm;width:.8mm}.job h3{font-size:9.4pt}.job-role{font-size:7.2pt}.job-date{font-size:7pt}.job-place{font-size:6.5pt}.job ul{margin-top:2mm;padding-left:4mm}.job li{font-size:7.25pt;margin:1.1mm 0;line-height:1.35}.stack{gap:1mm;margin-top:2mm}.chip{font-size:6pt;padding:1mm 1.5mm}
  .project-grid{gap:2mm}.project{padding:2.5mm;border-radius:3mm}.project h4{font-size:7.6pt}.project p,.project .project-link{font-size:6.4pt}.side-card{padding:3mm;border-radius:3mm;margin-bottom:2.5mm}.side-card h3{font-size:8.4pt;margin-bottom:2mm}.skill-group{margin-bottom:2mm}.skill-label{font-size:6pt}.skill-list{gap:1mm}.skill{font-size:6.4pt;padding:1mm 1.4mm}.edu{padding:1.8mm 0}.edu b{font-size:7pt}.edu span,.cert,.lang,.assoc{font-size:6.6pt}.note{font-size:5.8pt}.cv-footer{display:none}.job,.project,.side-card{break-inside:avoid-page}
}

/* V2.27 — CV visual harmonization */
.cv-brand-name{font-size:23px;font-weight:900;letter-spacing:-.045em;line-height:1}
.brand-dot{color:var(--blue)}
.cv-btn.lang{gap:7px;padding:8px 11px}
.flag-icon{width:23px;height:23px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px rgba(16,33,63,.10)}
.photo-column{display:flex;flex-direction:column;align-items:center;gap:14px;position:relative;z-index:1}
.availability-badge{display:inline-flex;align-items:center;gap:10px;padding:9px 13px;border-radius:999px;background:#fff;border:1px solid #dce5ff;box-shadow:0 8px 25px rgba(39,100,255,.08);font-size:12.5px;font-weight:800;color:#3159b6;white-space:nowrap}
.availability-dot{width:8px;height:8px;background:#31bf76;border-radius:50%;box-shadow:0 0 0 5px rgba(49,191,118,.12);flex:0 0 auto}
.photo-frame{background:linear-gradient(135deg,#b9d0ff,#d4caff);box-shadow:0 18px 40px rgba(95,119,185,.14)}
.contact-icon{width:18px;height:18px;object-fit:contain;flex:0 0 18px}
.contact-pill img[src="gmail.png"]{width:19px;height:16px}
.contact-pill img[src="LinkedIn.png"]{border-radius:4px}
.contact-pill img[src="github-sign.png"]{border-radius:50%}
@media(max-width:900px){.photo-column{align-items:flex-start}.availability-badge{font-size:11.5px}}
@media(max-width:620px){.cv-brand-name{font-size:21px}.flag-icon{width:20px;height:20px}.availability-badge{white-space:normal;line-height:1.3;max-width:100%}}
@media print{.availability-badge{font-size:6.8pt;padding:1.4mm 2mm;gap:1.8mm}.availability-dot{width:2mm;height:2mm;box-shadow:0 0 0 1mm rgba(49,191,118,.12)}.photo-column{gap:2mm}.contact-icon{width:3.5mm;height:3.5mm;flex-basis:3.5mm}}


/* V2.28 — CV layout refinements */
.cv-topbar-left{display:flex;align-items:center;gap:16px;min-width:0}
.hero-grid{grid-template-columns:minmax(0,1fr) 230px;gap:42px}
.photo-column{align-items:flex-end;width:230px;justify-self:end}
.photo-frame{width:190px;height:190px;border-radius:40px;padding:7px;margin-right:0}
.photo-frame img{border-radius:33px}
.availability-badge{align-self:flex-end}
.job-company{display:inline-flex;align-items:center;gap:10px}
.job-company-logo{width:38px;height:38px;border-radius:50%;object-fit:contain;background:#fff;border:1px solid #e1e8f4;box-shadow:0 5px 14px rgba(30,53,95,.09);padding:3px;flex:0 0 38px}
.job-company-name{display:inline-block}
.cv-footer{justify-content:flex-end;text-align:right}
@media(max-width:900px){
  .cv-topbar-left{gap:10px}
  .hero-grid{grid-template-columns:1fr}
  .photo-column{width:auto;align-items:flex-start;justify-self:start}
  .photo-frame{width:150px;height:150px;border-radius:32px}
  .photo-frame img{border-radius:26px}
  .availability-badge{align-self:flex-start}
}
@media(max-width:620px){
  .cv-topbar-left .hide-mobile{display:none}
  .job-company-logo{width:34px;height:34px;flex-basis:34px}
}
@media print{
  .hero-grid{grid-template-columns:1fr auto;gap:6mm}
  .photo-column{width:auto;align-items:flex-end;justify-self:end}
  .photo-frame{width:31mm;height:31mm;border-radius:8mm;padding:1.3mm}
  .photo-frame img{border-radius:6.8mm}
  .job-company{gap:2mm}
  .job-company-logo{width:8mm;height:8mm;flex-basis:8mm;padding:.5mm;box-shadow:none}
}


/* V2.30 — Projects moved into the right column to balance the CV layout */
.side-projects .project-grid{grid-template-columns:1fr;gap:10px}
.side-projects .project{padding:13px 14px;border-radius:14px;background:#fff}
.side-projects .project h4{font-size:12.5px;margin-bottom:5px}
.side-projects .project p{font-size:10.8px;margin-bottom:7px}
.side-projects .project .project-link{font-size:10.5px}
@media(max-width:900px){.side-projects .project-grid{grid-template-columns:1fr}}
@media print{.side-projects .project-grid{grid-template-columns:1fr;gap:1.5mm}.side-projects .project{padding:2mm 2.2mm}.side-projects .project h4{font-size:7pt}.side-projects .project p,.side-projects .project .project-link{font-size:6pt}}


/* V2.33 — Project portfolio promoted to the top of the right column */
.projects-side-section{margin-bottom:20px}
.projects-side-section .section-title{margin-bottom:14px;font-size:18px}
.project-timeline{display:flex;flex-direction:column;gap:12px}
.projects-side-section .project{
  position:relative;
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px 16px 15px 18px;
  background:#fff;
  break-inside:avoid;
  overflow:hidden;
}
.projects-side-section .project:before{
  content:"";
  position:absolute;
  left:-1px;
  top:14px;
  bottom:14px;
  width:4px;
  border-radius:0 6px 6px 0;
  background:linear-gradient(180deg,var(--blue),var(--violet));
}
.projects-side-section .project h4{font-size:13.5px;margin:0 0 6px;line-height:1.35;letter-spacing:-.01em}
.projects-side-section .project p{font-size:11.5px;color:var(--muted);margin:0 0 9px}
.projects-side-section .project .project-link{font-size:11px;font-weight:800;color:var(--blue);text-decoration:none}
.projects-side-section .project .project-link:hover{text-decoration:underline}
@media(max-width:900px){
  .projects-side-section{margin-bottom:24px}
  .projects-side-section .section-title{font-size:19px}
}
@media print{
  .projects-side-section{margin-bottom:3mm}
  .projects-side-section .section-title{font-size:10.5pt;margin-bottom:3mm}
  .project-timeline{gap:2mm}
  .projects-side-section .project{padding:2.5mm 2.7mm 2.4mm 3mm;border-radius:3mm}
  .projects-side-section .project:before{top:2.2mm;bottom:2.2mm;width:.8mm}
  .projects-side-section .project h4{font-size:7.6pt;margin-bottom:1.2mm}
  .projects-side-section .project p,.projects-side-section .project .project-link{font-size:6.4pt}
}


/* V2.34 — Education promoted before technical skills and styled like primary cards */
.education-side-section{margin-bottom:20px}
.education-side-section .section-title{margin-bottom:14px;font-size:18px}
.education-timeline{display:flex;flex-direction:column;gap:12px}
.education-card{
  position:relative;
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px 16px 15px 18px;
  background:#fff;
  break-inside:avoid;
  overflow:hidden;
}
.education-card:before{
  content:"";
  position:absolute;
  left:-1px;
  top:14px;
  bottom:14px;
  width:4px;
  border-radius:0 6px 6px 0;
  background:linear-gradient(180deg,var(--blue),var(--violet));
}
.education-head{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:start}
.education-logo{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:contain;
  background:#fff;
  border:1px solid #e1e8f4;
  box-shadow:0 5px 14px rgba(30,53,95,.09);
  padding:4px;
}
.education-card h4{font-size:13.5px;margin:0 0 5px;line-height:1.35;letter-spacing:-.01em;color:var(--ink)}
.education-card p{font-size:11.5px;color:#4f607b;font-weight:700;margin:0 0 4px}
.education-card span{display:block;font-size:11px;color:var(--blue);font-weight:850}
@media(max-width:900px){
  .education-side-section{margin-bottom:24px}
  .education-side-section .section-title{font-size:19px}
}
@media print{
  .education-side-section{margin-bottom:3mm}
  .education-side-section .section-title{font-size:10.5pt;margin-bottom:3mm}
  .education-timeline{gap:2mm}
  .education-card{padding:2.5mm 2.7mm 2.4mm 3mm;border-radius:3mm}
  .education-card:before{top:2.2mm;bottom:2.2mm;width:.8mm}
  .education-head{grid-template-columns:8mm minmax(0,1fr);gap:2mm}
  .education-logo{width:8mm;height:8mm;padding:.7mm;box-shadow:none}
  .education-card h4{font-size:7.6pt;margin-bottom:1mm}
  .education-card p,.education-card span{font-size:6.4pt}
}

/* V2.37 — Align company name and experience date on the same visual line */
@media (min-width: 701px) {
  .job-date {
    padding-top: 10px;
  }
}

@media print {
  .job-date {
    padding-top: 2mm;
  }
}


/* V2.38 — Association logos in circular medallions */
.assoc-with-logo{display:flex;align-items:center;gap:10px;padding:7px 0}
.assoc-logo{width:38px;height:38px;border-radius:50%;object-fit:contain;background:#fff;border:1px solid #e1e8f4;box-shadow:0 5px 14px rgba(30,53,95,.09);padding:4px;flex:0 0 38px}
.assoc-content{display:flex;flex-direction:column;gap:2px;min-width:0}
.assoc-content b{display:block;color:var(--ink);font-size:12px;line-height:1.2}
.assoc-content span{display:block;color:#42536e;font-size:11.5px;line-height:1.35}
@media(max-width:620px){.assoc-logo{width:34px;height:34px;flex-basis:34px}.assoc-with-logo{gap:9px}}
@media print{.assoc-with-logo{gap:2mm;padding:1mm 0}.assoc-logo{width:8mm;height:8mm;flex-basis:8mm;padding:.6mm;box-shadow:none}.assoc-content b{font-size:6.8pt}.assoc-content span{font-size:6.3pt}}


/* V2.39 — Project technology line + GitHub CTA on the same row */
.projects-side-section .project{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:14px;
  align-items:center;
}
.projects-side-section .project h4{grid-column:1 / -1;}
.projects-side-section .project p{
  grid-column:1;
  margin:0;
  min-width:0;
}
.projects-side-section .project .project-link{
  grid-column:2;
  justify-self:end;
  white-space:nowrap;
  margin:0;
}
@media(max-width:700px){
  .projects-side-section .project{grid-template-columns:1fr;}
  .projects-side-section .project h4,
  .projects-side-section .project p,
  .projects-side-section .project .project-link{grid-column:1;}
  .projects-side-section .project .project-link{justify-self:start;margin-top:8px;}
}
@media print{
  .projects-side-section .project{grid-template-columns:minmax(0,1fr) auto;column-gap:2mm;}
  .projects-side-section .project h4{grid-column:1 / -1;}
  .projects-side-section .project p{grid-column:1;margin:0;}
  .projects-side-section .project .project-link{grid-column:2;justify-self:end;white-space:nowrap;margin:0;}
}


/* V2.40 — Entire project card is clickable with a subtle interactive hover */
.projects-side-section .project-clickable{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  position:relative;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
@media (hover:hover) and (pointer:fine){
  .projects-side-section .project-clickable:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(42,72,150,.12);
    border-color:#b9c7ff;
    background:#ffffff;
  }
  .projects-side-section .project-clickable:hover .project-link{
    text-decoration:underline;
  }
}
.projects-side-section .project-clickable:focus-visible{
  outline:3px solid rgba(74,93,255,.28);
  outline-offset:3px;
  border-color:#9fb0ff;
}
.projects-side-section .project-clickable:active{
  transform:translateY(-1px);
}
@media (prefers-reduced-motion:reduce){
  .projects-side-section .project-clickable{transition:none}
}
@media print{
  .projects-side-section .project-clickable{
    color:inherit;
    text-decoration:none;
    cursor:default;
    transform:none!important;
    box-shadow:none!important;
  }
}


/* V2.41 — Education hierarchy: degree first, specialization on its own lighter line */
.education-card .education-degree{
  margin:0 0 2px;
}
.education-specialty{
  font-size:12.4px;
  line-height:1.35;
  font-weight:500;
  color:#52627c;
  margin:0 0 6px;
}
@media print{
  .education-card .education-degree{margin-bottom:.5mm}
  .education-specialty{font-size:7pt;margin-bottom:1mm;font-weight:500}
}

/* V2.42 — Certification rows: issuer + right-aligned year */
.cert{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
}
.cert-info{
  min-width:0;
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px 7px;
}
.cert-provider{
  color:#6f7e95;
  font-weight:500;
}
.cert-provider::before{
  content:"·";
  margin-right:7px;
  color:#a0aabd;
}
.cert-year{
  margin-left:auto;
  flex:0 0 auto;
  color:var(--blue);
  font-size:11px;
  font-weight:850;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
@media(max-width:520px){
  .cert{gap:9px}
  .cert-year{font-size:10.5px}
}
@media print{
  .cert{gap:2mm}
  .cert-info{gap:.7mm 1mm}
  .cert-provider{font-size:6.6pt}
  .cert-provider::before{margin-right:1mm}
  .cert-year{font-size:6.4pt}
}


/* V2.43 — Language note aligned with the section title to save vertical space */
.language-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:13px}
.language-card-head h3{margin:0}
.language-note{font-size:10px;color:#929db0;white-space:nowrap;text-align:right}
@media(max-width:620px){.language-card-head{gap:8px}.language-note{font-size:9px;white-space:normal}}
@media print{.language-card-head{margin-bottom:2mm}.language-note{font-size:5.8pt}}


/* V2.44 — Education cards are fully clickable, with the same subtle interaction as project cards */
.education-side-section .education-clickable{
  display:block;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
@media (hover:hover) and (pointer:fine){
  .education-side-section .education-clickable:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(42,72,150,.12);
    border-color:#b9c7ff;
    background:#ffffff;
  }
}
.education-side-section .education-clickable:focus-visible{
  outline:3px solid rgba(74,93,255,.28);
  outline-offset:3px;
  border-color:#9fb0ff;
}
.education-side-section .education-clickable:active{
  transform:translateY(-1px);
}
@media (prefers-reduced-motion:reduce){
  .education-side-section .education-clickable{transition:none}
}
@media print{
  .education-side-section .education-clickable{
    color:inherit;
    text-decoration:none;
    cursor:default;
    transform:none!important;
    box-shadow:none!important;
  }
}

/* V2.45 — Print-only one-page A4 layout. Screen/web layout is unchanged. */
@media print {
  @page { size: A4 portrait; margin: 3.5mm; }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .cv-page {
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  /* Compact hero only for the PDF */
  .cv-hero { padding: 3mm 4mm 2.5mm !important; }
  .hero-grid { grid-template-columns: minmax(0,1fr) auto !important; gap: 3mm !important; align-items: center !important; }
  .name { font-size: 20pt !important; line-height: .95 !important; margin: 0 0 .8mm !important; }
  .role { font-size: 8.4pt !important; line-height: 1.1 !important; margin: 0 0 1.1mm !important; }
  .summary { font-size: 5.7pt !important; line-height: 1.18 !important; margin: 0 !important; max-width: none !important; }
  .photo-column { gap: 1mm !important; width: auto !important; }
  .availability-badge { font-size: 4.8pt !important; line-height: 1 !important; padding: .7mm 1.1mm !important; gap: .9mm !important; }
  .availability-dot { width: 1.35mm !important; height: 1.35mm !important; box-shadow: 0 0 0 .65mm rgba(49,191,118,.12) !important; }
  .photo-frame { width: 21mm !important; height: 21mm !important; padding: .8mm !important; border-radius: 5.2mm !important; }
  .photo-frame img { border-radius: 4.5mm !important; }

  .contact-row-wide {
    margin-top: 1.5mm !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: .8mm !important;
    justify-content: space-between !important;
  }
  .contact-row-wide .contact-pill {
    font-size: 4.7pt !important;
    line-height: 1 !important;
    padding: .65mm .9mm !important;
    gap: .6mm !important;
    white-space: nowrap !important;
  }
  .contact-icon { width: 2.7mm !important; height: 2.7mm !important; flex-basis: 2.7mm !important; }
  .contact-pill img[src="gmail.png"] { width: 2.9mm !important; height: 2.4mm !important; }

  .impact-strip {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 1mm !important;
    margin-top: 1.5mm !important;
  }
  .impact { padding: .9mm 1.2mm !important; border-radius: 1.8mm !important; }
  .impact b { font-size: 7.4pt !important; line-height: 1 !important; }
  .impact span { font-size: 4.5pt !important; line-height: 1.08 !important; margin-top: .35mm !important; }

  /* Compact two-column body */
  .cv-body {
    grid-template-columns: minmax(0,1.78fr) minmax(51mm,.82fr) !important;
    gap: 2.6mm !important;
    padding: 2.5mm 4mm 2.5mm !important;
    align-items: start !important;
  }
  .section { margin-bottom: 1.8mm !important; }
  .section-title {
    font-size: 7.2pt !important;
    line-height: 1 !important;
    margin: 0 0 1.2mm !important;
    gap: 1.3mm !important;
  }
  .section-title:before { width: 5.5mm !important; height: .7mm !important; }

  /* Professional experience cards */
  .timeline { gap: 1mm !important; }
  .job {
    padding: 1.25mm 1.55mm 1.15mm 1.75mm !important;
    border-radius: 1.8mm !important;
  }
  .job:before { top: 1.4mm !important; bottom: 1.4mm !important; width: .65mm !important; }
  .job-head { gap: 1.4mm !important; margin-bottom: .45mm !important; align-items: start !important; }
  .job-company { gap: 1mm !important; }
  .job-company-logo { width: 5.2mm !important; height: 5.2mm !important; flex-basis: 5.2mm !important; padding: .3mm !important; }
  .job h3 { font-size: 6.1pt !important; line-height: 1.05 !important; margin: 0 !important; }
  .job-role { font-size: 4.9pt !important; line-height: 1.08 !important; margin-top: .35mm !important; }
  .job-place { font-size: 4.3pt !important; line-height: 1 !important; margin-top: .3mm !important; }
  .job-date { font-size: 4.8pt !important; line-height: 1 !important; padding-top: 1.35mm !important; }
  .job ul { margin: .65mm 0 0 !important; padding-left: 2.8mm !important; }
  .job li { font-size: 4.7pt !important; line-height: 1.14 !important; margin: .28mm 0 !important; }
  .stack { gap: .45mm !important; margin-top: .65mm !important; }
  .chip { font-size: 4pt !important; line-height: 1 !important; padding: .35mm .6mm !important; }

  /* Projects */
  .projects-side-section { margin-bottom: 1.6mm !important; }
  .projects-side-section .section-title { font-size: 7.2pt !important; margin-bottom: 1.2mm !important; }
  .project-timeline { gap: .75mm !important; }
  .projects-side-section .project {
    padding: 1mm 1.15mm .95mm 1.4mm !important;
    border-radius: 1.7mm !important;
    column-gap: 1mm !important;
  }
  .projects-side-section .project:before { top: 1mm !important; bottom: 1mm !important; width: .6mm !important; }
  .projects-side-section .project h4 { font-size: 5.15pt !important; line-height: 1.12 !important; margin: 0 0 .45mm !important; }
  .projects-side-section .project p,
  .projects-side-section .project .project-link { font-size: 4.1pt !important; line-height: 1.05 !important; }

  /* Education */
  .education-side-section { margin-bottom: 1.5mm !important; }
  .education-side-section .section-title { font-size: 7.2pt !important; margin-bottom: 1.2mm !important; }
  .education-timeline { gap: .75mm !important; }
  .education-card { padding: 1mm 1.15mm .95mm 1.4mm !important; border-radius: 1.7mm !important; }
  .education-card:before { top: 1mm !important; bottom: 1mm !important; width: .6mm !important; }
  .education-head { grid-template-columns: 5.5mm minmax(0,1fr) !important; gap: 1mm !important; }
  .education-logo { width: 5.5mm !important; height: 5.5mm !important; padding: .35mm !important; }
  .education-card h4 { font-size: 5.1pt !important; line-height: 1.08 !important; margin: 0 0 .25mm !important; }
  .education-specialty { font-size: 4.6pt !important; line-height: 1.05 !important; margin: 0 0 .35mm !important; }
  .education-card p,
  .education-card span { font-size: 4.2pt !important; line-height: 1.05 !important; margin: 0 !important; }

  /* Secondary right-column cards */
  .side-card { padding: 1.1mm 1.3mm !important; border-radius: 1.7mm !important; margin-bottom: .8mm !important; }
  .side-card h3 { font-size: 5.7pt !important; line-height: 1 !important; margin: 0 0 .75mm !important; }
  .skill-group { margin-bottom: .65mm !important; }
  .skill-label { font-size: 4pt !important; line-height: 1 !important; margin-bottom: .35mm !important; }
  .skill-list { gap: .4mm !important; }
  .skill { font-size: 4.15pt !important; line-height: 1 !important; padding: .35mm .55mm !important; border-radius: .8mm !important; }

  .cert-list, .lang-list, .assoc-list { gap: .45mm !important; }
  .cert, .lang, .assoc { font-size: 4.4pt !important; line-height: 1.08 !important; }
  .cert { gap: 1mm !important; }
  .cert-info { gap: .2mm .5mm !important; }
  .cert-provider { font-size: 4.15pt !important; }
  .cert-provider::before { margin-right: .45mm !important; }
  .cert-year { font-size: 4.25pt !important; }

  .assoc-with-logo { gap: .8mm !important; padding: .35mm 0 !important; }
  .assoc-logo { width: 5.2mm !important; height: 5.2mm !important; flex-basis: 5.2mm !important; padding: .35mm !important; }
  .assoc-content { gap: .1mm !important; }
  .assoc-content b { font-size: 4.5pt !important; line-height: 1.05 !important; }
  .assoc-content span { font-size: 4.15pt !important; line-height: 1.05 !important; }

  .language-card-head { margin-bottom: .6mm !important; }
  .language-note { font-size: 3.8pt !important; }
  .lang { padding-bottom: .35mm !important; gap: 1mm !important; }
  .level { font-size: 4.3pt !important; }

  .cv-footer { display: none !important; }
  .job, .project, .education-card, .side-card { break-inside: avoid !important; page-break-inside: avoid !important; }
}

/* V2.46 — Print-only balanced A4 fill: keep one page while using the available height better. */
@media print {
  /* The web/screen layout is untouched. These values only rebalance the generated PDF. */
  @page { size: A4 portrait; margin: 3.5mm; }

  /* Slightly more generous hero */
  .cv-hero { padding: 4.2mm 4.8mm 3.5mm !important; }
  .hero-grid { gap: 4mm !important; }
  .name { font-size: 22.5pt !important; line-height: .98 !important; margin-bottom: 1.1mm !important; }
  .role { font-size: 9.2pt !important; margin-bottom: 1.5mm !important; }
  .summary { font-size: 6.25pt !important; line-height: 1.25 !important; }
  .photo-column { gap: 1.4mm !important; }
  .availability-badge { font-size: 5.25pt !important; padding: .9mm 1.35mm !important; gap: 1.05mm !important; }
  .availability-dot { width: 1.5mm !important; height: 1.5mm !important; }
  .photo-frame { width: 24mm !important; height: 24mm !important; padding: .9mm !important; border-radius: 5.8mm !important; }
  .photo-frame img { border-radius: 5mm !important; }

  .contact-row-wide { margin-top: 2mm !important; gap: 1mm !important; }
  .contact-row-wide .contact-pill { font-size: 5.05pt !important; padding: .8mm 1.05mm !important; gap: .7mm !important; }
  .contact-icon { width: 2.9mm !important; height: 2.9mm !important; flex-basis: 2.9mm !important; }
  .contact-pill img[src="gmail.png"] { width: 3.1mm !important; height: 2.6mm !important; }

  .impact-strip { gap: 1.3mm !important; margin-top: 2mm !important; }
  .impact { padding: 1.25mm 1.45mm !important; border-radius: 2.1mm !important; }
  .impact b { font-size: 8.1pt !important; }
  .impact span { font-size: 4.9pt !important; line-height: 1.12 !important; margin-top: .45mm !important; }

  /* Use more of the A4 height, without affecting browser layout */
  .cv-body {
    grid-template-columns: minmax(0,1.78fr) minmax(51mm,.82fr) !important;
    gap: 3.2mm !important;
    padding: 3.8mm 4.8mm 4mm !important;
    align-items: start !important;
  }
  .section { margin-bottom: 2.8mm !important; }
  .section-title { font-size: 8pt !important; margin-bottom: 1.8mm !important; gap: 1.5mm !important; }
  .section-title:before { width: 6.3mm !important; height: .8mm !important; }

  /* Professional experiences: larger and better breathing room */
  .timeline { gap: 1.8mm !important; }
  .job { padding: 1.85mm 2mm 1.7mm 2.15mm !important; border-radius: 2.1mm !important; }
  .job:before { top: 1.8mm !important; bottom: 1.8mm !important; width: .7mm !important; }
  .job-head { gap: 1.6mm !important; margin-bottom: .65mm !important; }
  .job-company { gap: 1.2mm !important; }
  .job-company-logo { width: 5.8mm !important; height: 5.8mm !important; flex-basis: 5.8mm !important; padding: .35mm !important; }
  .job h3 { font-size: 6.7pt !important; line-height: 1.08 !important; }
  .job-role { font-size: 5.35pt !important; line-height: 1.12 !important; margin-top: .45mm !important; }
  .job-place { font-size: 4.7pt !important; margin-top: .4mm !important; }
  .job-date { font-size: 5.2pt !important; padding-top: 1.45mm !important; }
  .job ul { margin: .9mm 0 0 !important; padding-left: 3.2mm !important; }
  .job li { font-size: 5.05pt !important; line-height: 1.2 !important; margin: .42mm 0 !important; }
  .stack { gap: .55mm !important; margin-top: .9mm !important; }
  .chip { font-size: 4.3pt !important; padding: .45mm .72mm !important; }

  /* Projects: keep compact but no longer tiny */
  .projects-side-section { margin-bottom: 2.4mm !important; }
  .projects-side-section .section-title { font-size: 8pt !important; margin-bottom: 1.8mm !important; }
  .project-timeline { gap: 1.15mm !important; }
  .projects-side-section .project { padding: 1.35mm 1.45mm 1.25mm 1.7mm !important; border-radius: 2mm !important; column-gap: 1.15mm !important; }
  .projects-side-section .project:before { top: 1.25mm !important; bottom: 1.25mm !important; width: .65mm !important; }
  .projects-side-section .project h4 { font-size: 5.65pt !important; line-height: 1.15 !important; margin-bottom: .6mm !important; }
  .projects-side-section .project p,
  .projects-side-section .project .project-link { font-size: 4.45pt !important; line-height: 1.08 !important; }

  /* Education */
  .education-side-section { margin-bottom: 2.3mm !important; }
  .education-side-section .section-title { font-size: 8pt !important; margin-bottom: 1.8mm !important; }
  .education-timeline { gap: 1.15mm !important; }
  .education-card { padding: 1.4mm 1.5mm 1.3mm 1.75mm !important; border-radius: 2mm !important; }
  .education-card:before { top: 1.25mm !important; bottom: 1.25mm !important; width: .65mm !important; }
  .education-head { grid-template-columns: 6.2mm minmax(0,1fr) !important; gap: 1.2mm !important; }
  .education-logo { width: 6.2mm !important; height: 6.2mm !important; padding: .4mm !important; }
  .education-card h4 { font-size: 5.65pt !important; line-height: 1.1 !important; margin-bottom: .35mm !important; }
  .education-specialty { font-size: 5pt !important; line-height: 1.08 !important; margin-bottom: .45mm !important; }
  .education-card p,
  .education-card span { font-size: 4.55pt !important; line-height: 1.08 !important; }

  /* Right-column information cards */
  .side-card { padding: 1.55mm 1.65mm !important; border-radius: 2mm !important; margin-bottom: 1.25mm !important; }
  .side-card h3 { font-size: 6.25pt !important; margin-bottom: 1mm !important; }
  .skill-group { margin-bottom: .9mm !important; }
  .skill-label { font-size: 4.35pt !important; margin-bottom: .45mm !important; }
  .skill-list { gap: .5mm !important; }
  .skill { font-size: 4.45pt !important; padding: .42mm .65mm !important; }

  .cert-list, .lang-list, .assoc-list { gap: .65mm !important; }
  .cert, .lang, .assoc { font-size: 4.75pt !important; line-height: 1.12 !important; }
  .cert { gap: 1.2mm !important; }
  .cert-provider { font-size: 4.45pt !important; }
  .cert-year { font-size: 4.65pt !important; }

  .assoc-with-logo { gap: 1mm !important; padding: .5mm 0 !important; }
  .assoc-logo { width: 5.8mm !important; height: 5.8mm !important; flex-basis: 5.8mm !important; padding: .4mm !important; }
  .assoc-content b { font-size: 4.9pt !important; }
  .assoc-content span { font-size: 4.5pt !important; line-height: 1.08 !important; }

  .language-card-head { margin-bottom: .8mm !important; }
  .language-note { font-size: 4.05pt !important; }
  .lang { padding-bottom: .5mm !important; }
  .level { font-size: 4.65pt !important; }
}

/* V2.54 — Print-only A4 vertical fill. Screen/web layout remains unchanged. */
@media print {
  /* Keep one A4 page, but use the vertical space instead of over-compressing. */
  .cv-hero { padding-top: 5.2mm !important; padding-bottom: 4.7mm !important; }
  .contact-row-wide { margin-top: 2.6mm !important; }
  .impact-strip { margin-top: 2.8mm !important; }
  .impact { padding-top: 1.7mm !important; padding-bottom: 1.7mm !important; }

  .cv-body { padding-top: 5mm !important; padding-bottom: 4.8mm !important; }
  .section-title { margin-bottom: 2.5mm !important; }

  .timeline { gap: 3.2mm !important; }
  .job { padding-top: 3.4mm !important; padding-bottom: 3.2mm !important; }
  .job:before { top: 2.7mm !important; bottom: 2.7mm !important; }
  .job ul { margin-top: 1.2mm !important; }
  .stack { margin-top: 1.15mm !important; }

  .project-timeline { gap: 2mm !important; }
  .projects-side-section .project { padding-top: 2mm !important; padding-bottom: 1.9mm !important; }

  .education-timeline { gap: 2mm !important; }
  .education-card { padding-top: 2.1mm !important; padding-bottom: 2mm !important; }

  .side-card { padding-top: 2.2mm !important; padding-bottom: 2.2mm !important; margin-bottom: 2mm !important; }
  .skill-group { margin-bottom: 1.25mm !important; }
  .cert-list, .lang-list, .assoc-list { gap: .95mm !important; }
  .assoc-with-logo { padding-top: .75mm !important; padding-bottom: .75mm !important; }
  .lang { padding-bottom: .75mm !important; }
}

/* V2.66 candidate — print-only A4 vertical fill */
@media print {
  @page { size: A4 portrait; margin: 1.5mm 3.5mm 1.5mm 3.5mm; }
  .cv-hero { padding-top: 6.3mm !important; padding-bottom: 5.8mm !important; }
  .contact-row-wide { margin-top: 3mm !important; }
  .impact-strip { margin-top: 3.2mm !important; }
  .impact { padding-top: 2mm !important; padding-bottom: 2mm !important; }
  .cv-body { padding-top: 5.8mm !important; padding-bottom: 1.2mm !important; }
  .section-title { margin-bottom: 2.8mm !important; }
  .timeline { gap: 4mm !important; }
  .job { padding-top: 4.2mm !important; padding-bottom: 4mm !important; }
  .job:before { top: 3.1mm !important; bottom: 3.1mm !important; }
  .job ul { margin-top: 1.35mm !important; }
  .stack { margin-top: 1.3mm !important; }
  .projects-side-section { margin-bottom: 2.8mm !important; }
  .project-timeline { gap: 2.4mm !important; }
  .projects-side-section .project { padding-top: 2.35mm !important; padding-bottom: 2.25mm !important; }
  .education-side-section { margin-bottom: 2.8mm !important; }
  .education-timeline { gap: 2.4mm !important; }
  .education-card { padding-top: 2.45mm !important; padding-bottom: 2.35mm !important; }
  .side-card { padding-top: 2.6mm !important; padding-bottom: 2.6mm !important; margin-bottom: 2.35mm !important; }
  .skill-group { margin-bottom: 1.45mm !important; }
  .cert-list, .lang-list, .assoc-list { gap: 1.1mm !important; }
  .assoc-with-logo { padding-top: .9mm !important; padding-bottom: .9mm !important; }
  .lang { padding-bottom: .9mm !important; }
}


/* V2.77 — Association dates aligned right in blue, matching certification years */
.assoc-content{
  flex:1 1 auto;
  width:100%;
}
.assoc-meta{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-width:0;
}
.assoc-role{
  min-width:0;
  color:#42536e;
}
.assoc-year{
  margin-left:auto;
  flex:0 0 auto;
  color:var(--blue) !important;
  font-size:11px !important;
  font-weight:850;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
@media(max-width:520px){
  .assoc-meta{gap:8px}
  .assoc-year{font-size:10.5px !important}
}
@media print{
  .assoc-meta{gap:1.2mm}
  .assoc-role{font-size:4.5pt !important}
  .assoc-year{font-size:4.65pt !important}
}


/* V2.78 — Interactive Rotaract & Enactus logo links */
.assoc-logo-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:50%;
  text-decoration:none;
  cursor:pointer;
  transition:transform .22s ease,filter .22s ease;
  outline:none;
}
.assoc-logo-link .assoc-logo{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;}
@media (hover:hover) and (pointer:fine){
  .assoc-logo-link:hover{transform:translateY(-4px) scale(1.06);}
  .assoc-logo-link:hover .assoc-logo{box-shadow:0 10px 22px rgba(39,100,255,.20);border-color:rgba(39,100,255,.38);}
}
.assoc-logo-link:active{transform:translateY(-1px) scale(.98);}
.assoc-logo-link:focus-visible{box-shadow:0 0 0 3px rgba(39,100,255,.20);}
@media(max-width:620px){.assoc-logo-link{width:34px;height:34px;flex-basis:34px;}}
@media print{.assoc-logo-link{width:8mm;height:8mm;flex-basis:8mm;transform:none!important;filter:none!important;box-shadow:none!important;}}

/* V2.79 — Compact illustrated headers for secondary CV cards */
.side-card-title{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 13px;
  min-width:0;
}
.side-card-title h3{
  margin:0 !important;
  min-width:0;
}
.side-card-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:linear-gradient(145deg,#eef3ff 0%,#ffffff 100%);
  border:1px solid #dce5ff;
  box-shadow:0 5px 14px rgba(53,100,255,.10);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.side-card-icon img{
  display:block;
  width:15px;
  height:15px;
  object-fit:contain;
}
.language-card-head .side-card-title{margin-bottom:0;}
@media (hover:hover) and (pointer:fine){
  .side-card:hover .side-card-icon{
    transform:translateY(-2px) rotate(-3deg);
    box-shadow:0 8px 18px rgba(53,100,255,.16);
    border-color:#cbd9ff;
  }
}
@media(max-width:620px){
  .side-card-title{gap:8px;}
  .side-card-icon{width:26px;height:26px;flex-basis:26px;}
  .side-card-icon img{width:14px;height:14px;}
}
@media print{
  .side-card-title{gap:.8mm;margin:0 0 .75mm !important;}
  .side-card-icon{
    width:2.8mm;
    height:2.8mm;
    flex-basis:2.8mm;
    border-width:.18mm;
    box-shadow:none !important;
    transform:none !important;
  }
  .side-card-icon img{width:1.65mm;height:1.65mm;}
  .language-card-head .side-card-title{margin-bottom:0 !important;}
}

/* V2.80 — strict single-page A4 print fit after illustrated side-card headers. Screen layout unchanged. */
@media print {
  /* Preserve the generous overall scale, but recover the few millimetres needed by the right column. */
  .cv-hero { padding-top: 5.9mm !important; padding-bottom: 5.3mm !important; }
  .contact-row-wide { margin-top: 2.7mm !important; }
  .impact-strip { margin-top: 2.9mm !important; }
  .impact { padding-top: 1.8mm !important; padding-bottom: 1.8mm !important; }
  .cv-body { padding-top: 5.1mm !important; padding-bottom: .8mm !important; }
  .section-title { margin-bottom: 2.5mm !important; }

  /* Left column remains roomy, only slightly tighter than V2.66. */
  .timeline { gap: 3.45mm !important; }
  .job { padding-top: 3.75mm !important; padding-bottom: 3.6mm !important; }
  .job:before { top: 2.9mm !important; bottom: 2.9mm !important; }
  .job ul { margin-top: 1.2mm !important; }

  /* Right column: compact spacing enough to guarantee Languages stays on page 1. */
  .projects-side-section { margin-bottom: 2.15mm !important; }
  .project-timeline { gap: 1.75mm !important; }
  .projects-side-section .project { padding-top: 1.9mm !important; padding-bottom: 1.8mm !important; }

  .education-side-section { margin-bottom: 2.05mm !important; }
  .education-timeline { gap: 1.75mm !important; }
  .education-card { padding-top: 1.95mm !important; padding-bottom: 1.85mm !important; }

  .side-card { padding-top: 1.9mm !important; padding-bottom: 1.9mm !important; margin-bottom: 1.45mm !important; }
  .skill-group { margin-bottom: 1mm !important; }
  .cert-list, .lang-list, .assoc-list { gap: .72mm !important; }
  .assoc-with-logo { padding-top: .55mm !important; padding-bottom: .55mm !important; }
  .assoc-logo-link { width: 6.2mm !important; height: 6.2mm !important; flex-basis: 6.2mm !important; }
  .assoc-logo { width: 6.2mm !important; height: 6.2mm !important; flex-basis: 6.2mm !important; }
  .lang { padding-bottom: .55mm !important; }

  /* Illustrated header icons stay visible, but no longer add unnecessary print height. */
  .side-card-title { gap: .65mm !important; margin: 0 0 .4mm !important; }
  .side-card-icon { width: 2.35mm !important; height: 2.35mm !important; flex-basis: 2.35mm !important; }
  .side-card-icon img { width: 1.4mm !important; height: 1.4mm !important; }
  .language-card-head { margin-bottom: .45mm !important; }
  .language-card-head .side-card-title { margin-bottom: 0 !important; }
}

/* V2.82 — print-only vertical expansion to use the A4 page more fully while preserving the strict one-page CV requirement. */
@media print {
  /* Restore the more generous vertical rhythm that previously fit on one page. */
  .cv-hero { padding-top: 6.3mm !important; padding-bottom: 5.8mm !important; }
  .contact-row-wide { margin-top: 3mm !important; }
  .impact-strip { margin-top: 3.2mm !important; }
  .impact { padding-top: 2mm !important; padding-bottom: 2mm !important; }
  .cv-body { padding-top: 5.8mm !important; padding-bottom: .6mm !important; }
  .section-title { margin-bottom: 2.8mm !important; }

  /* Experience column: spread the six cards to occupy the available A4 height. */
  .timeline { gap: 4mm !important; }
  .job { padding-top: 4.2mm !important; padding-bottom: 4mm !important; }
  .job:before { top: 3.1mm !important; bottom: 3.1mm !important; }
  .job ul { margin-top: 1.35mm !important; }
  .stack { margin-top: 1.3mm !important; }

  /* Keep the right column on the compact V2.80 settings so Languages remains on page 1. */
  .projects-side-section { margin-bottom: 2.15mm !important; }
  .project-timeline { gap: 1.75mm !important; }
  .projects-side-section .project { padding-top: 1.9mm !important; padding-bottom: 1.8mm !important; }
  .education-side-section { margin-bottom: 2.05mm !important; }
  .education-timeline { gap: 1.75mm !important; }
  .education-card { padding-top: 1.95mm !important; padding-bottom: 1.85mm !important; }
  .side-card { padding-top: 1.9mm !important; padding-bottom: 1.9mm !important; margin-bottom: 1.45mm !important; }
  .skill-group { margin-bottom: 1mm !important; }
  .cert-list, .lang-list, .assoc-list { gap: .72mm !important; }
  .assoc-with-logo { padding-top: .55mm !important; padding-bottom: .55mm !important; }
  .lang { padding-bottom: .55mm !important; }
}
