/* ===== Template 9 – Pakistan Classic (A4 = 794 x 1123 px, single column, print friendly) ===== */
.tpl-pak {
  --ac: #0b5d3b; --ac-dark: #083d27; --ac-soft: #9cc7b3; --ac-tint: #e8f3ed;
  --dens: 1; --ink: #1d2420; --gray: #5d6a63; --photo: 96px; --bullet: "•"; --bfs: 1em; --bfsn: 1;
  --ln: var(--ac);
  width: 794px; min-height: 1123px; flex: none;
  padding: 28px 48px 24px;
  background: #fff; color: var(--ink);
  font-family: var(--f-body, Arial, Helvetica, 'Liberation Sans', sans-serif);
  font-size: calc(13px * var(--s-body, 1));
  line-height: calc(1.36 + (var(--dens) - 1) * .4);
  box-shadow: 0 10px 40px rgba(8, 61, 39, .16);
}
.tpl-pak, .tpl-pak * { box-sizing: border-box; }
.tpl-pak.has-foot { padding-bottom: 50px; }

/* Header: name + stacked contact lines on the left, passport-style photo on the right */
.tpl-pak .pk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.tpl-pak .pk-id { min-width: 0; flex: 1; }
.tpl-pak .name {
  margin: 0; font-family: var(--f-head, Arial, Helvetica, 'Liberation Sans', sans-serif); font-weight: 800;
  font-size: calc(28px * var(--s-name, 1)); line-height: 1.15; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ac-dark); text-align: var(--a-name, left); overflow-wrap: anywhere;
}
.tpl-pak.nc-off .name { text-transform: none; }
.tpl-pak .title-row { margin-top: 5px; text-align: var(--a-title, left); }
.tpl-pak .title { display: inline-block; font-family: var(--f-head, Arial, Helvetica, sans-serif); font-weight: 700; font-size: calc(14.5px * var(--s-title, 1)); line-height: 1.3; color: var(--ac); }
.tpl-pak.ts-plain .title { color: var(--ink); }
.tpl-pak.ts-tag .title { background: var(--ac); color: #fff; padding: .25em .75em; border-radius: 3px; }
.tpl-pak .pk-contact { margin-top: 10px; }
.tpl-pak .ci { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.tpl-pak .ico { flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--ac); display: inline-flex; align-items: center; justify-content: center; }
.tpl-pak .ico svg { width: 8px; height: 8px; fill: #fff; }
.tpl-pak .txt { overflow-wrap: anywhere; }
.tpl-pak .photo-wrap { flex: none; width: var(--photo); height: var(--photo); }
.tpl-pak .photo-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; }
.tpl-pak .pk-rule { margin: 8px 0 10px; border-top: 3px solid var(--ac); }
.tpl-pak.hr-thick .pk-rule { border-top-width: 5px; }
.tpl-pak.hr-none .pk-rule { border-top: 0; margin: 6px 0; }

/* Sections: tinted band with a bar on the left (the "underline" choice) */
.tpl-pak .sec { margin-bottom: calc(10px * var(--dens)); }
.tpl-pak .sec:last-child { margin-bottom: 0; }
.tpl-pak .sec h2 {
  margin: 0 0 calc(9px * var(--dens)); padding-bottom: 4px;
  font-family: var(--f-head, Arial, Helvetica, sans-serif); font-weight: 700;
  font-size: calc(13.5px * var(--s-h2, 1)); line-height: 1.25; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ac-dark); text-align: var(--a-h2, left);
}
.tpl.tpl-pak.hs-underline .sec h2 { background: var(--ac-tint); border: 0; border-left: 4px solid var(--ac); padding: 3px 10px; }
.tpl-pak.hc-off .sec h2 { text-transform: none; letter-spacing: .01em; }
.tpl-pak .summary { margin: 0; text-align: var(--a-body, justify); white-space: pre-line; }

/* Tables (qualifications, personal information) */
.tpl-pak table { width: 100%; border-collapse: collapse; }
.tpl-pak .edu-t th { background: var(--ac); color: #fff; font-weight: 700; text-align: left; padding: 4px 9px; border: 1px solid var(--ac); font-size: .94em; }
.tpl-pak .edu-t td { padding: 4px 9px; border: 1px solid var(--ac-soft); vertical-align: top; text-align: var(--a-body, left); }
.tpl-pak .edu-t .sub { font-size: .92em; color: var(--gray); margin-top: 1px; }
.tpl-pak .edu-t .c-y { width: 96px; white-space: nowrap; }
.tpl-pak .edu-t .c-g { width: 108px; }
.tpl-pak .pi-t th { width: 17%; background: var(--ac-tint); color: var(--ac-dark); font-weight: 700; text-align: left; padding: 3px 9px; border: 1px solid var(--ac-soft); }
.tpl-pak .pi-t td { width: 33%; padding: 3px 9px; border: 1px solid var(--ac-soft); overflow-wrap: anywhere; }

/* Experience */
.tpl-pak .ent { margin-bottom: calc(9px * var(--dens)); }
.tpl-pak .ent:last-child { margin-bottom: 0; }
.tpl-pak .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tpl-pak .it { font-weight: 700; font-size: calc(14px * var(--s-sub, 1)); line-height: 1.3; color: var(--ac-dark); text-align: var(--a-sub, left); }
.tpl-pak .dt { flex: none; white-space: nowrap; color: var(--gray); font-size: .92em; font-style: italic; }
.tpl-pak .org { color: var(--ac); font-weight: 600; margin: 1px 0 3px; text-align: var(--a-body, left); }

/* Lists */
.tpl-pak ul { margin: 3px 0 0; padding-left: 16px; list-style: none; }
.tpl-pak li { --lh: calc(1.36 + (var(--dens) - 1) * .4); position: relative; margin-bottom: calc(1px * var(--dens)); line-height: var(--lh); text-align: var(--a-body, left); overflow-wrap: anywhere; }
.tpl-pak li::before { content: var(--bullet); position: absolute; left: -13px; top: 0; font-size: var(--bfs); line-height: calc(var(--lh) / var(--bfsn, 1)); color: var(--ac); }
.tpl-pak ul.grid { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 26px; }
