/* Variables & reset */
:root {
  /* Brand colors from Pencil design */
  --navy:       #1F3864;
  --navy2:      #0B1F3A;
  --blue:       #0057B8;
  --blue-mid:   #0B74DE;
  --teal:       #0B74DE;
  --green:      #0057B8;
  --purple:     #174EA6;
  --orange:     #1E40AF;
  --lblue:      #EAF2FF;
  --accent:     #BDD7EE;
  --dark:       #111827;
  --mid:        #374151;
  --gray:       #6B7280;
  --border:     #E2E8F0;
  --border2:    #CBD5E1;
  --bg:         #F8FAFC;
  --white:      #ffffff;
  --sidebar:    270px;
  --hl-blue:    #EAF2FF;
  --hl-green:   #EAF2FF;
  --hl-teal:    #EFF4FA;
  --hl-purple:  #EFF4FA;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 4px;
  z-index: 9999;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { left: 4px; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Loading and framework UI */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--navy2);
  gap: 8px;
}

.loading-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loading-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.loading-name { font-size: 19px; font-weight: 700; color: #fff; }
.loading-sub  { font-size: 12px; color: rgba(189,215,238,0.64); }

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0,0,0,.2);
  display: none;
  left: 0;
  padding: .6rem 1.25rem .7rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ── Layout ── */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar);
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 20px 32px;
  z-index: 200;
  border-right: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }

/* Sidebar top group (brand + CTAs + avail + nav) */
.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar bottom group (contacts + lang + back) */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 16px;
}

/* Brand block */
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

/* Photo avatar */
.sidebar-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

a.sidebar-avatar {
  cursor: pointer;
  display: block;
  text-decoration: none;
}

/* Initials avatar */
.sidebar-avatar-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #2d4a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.sidebar-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-align: center;
}

.sidebar-role-text {
  font-size: 10px;
  color: rgba(255,255,255,0.80);
  line-height: 1.55;
  text-align: center;
}

/* Legacy — kept so any old templates don't crash */
.sidebar-role {
  font-size: 12px;
  color: rgba(221,235,248,0.72);
  line-height: 1.55;
}

/* CTA buttons */
.sidebar-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0057B8;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.sidebar-btn-primary:hover {
  background: #0062CC;
  text-decoration: none;
  color: #fff;
}

.sidebar-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.sidebar-btn-secondary:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
}

/* Availability pill */
.sidebar-avail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.40);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #6EE7A0;
  align-self: stretch;
}

.avail-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

/* Legacy availability dot (blue) */
.avail-dot,
.hero-avail-dot,
.footer-avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65B7FF;
  flex-shrink: 0;
}

/* Legacy availability pill */
.avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(11,116,222,0.12);
  border: 1px solid rgba(189,215,238,0.28);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #DDEBF8;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Navigation */
.sidebar-nav {
  padding: 0;
}

.nav-group-label {
  padding: 12px 4px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  font-weight: 550;
  border-radius: 6px;
  text-decoration: none;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

.nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.10);
}

/* Number icon for nav items */
.nav-num {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.33);
  width: 20px;
  flex-shrink: 0;
}

/* Legacy nav icon */
.nav-icon {
  width: 24px;
  color: rgba(189,215,238,0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

/* Contact info in sidebar */
.sidebar-contacts {
  padding: 8px 0 12px;
  margin-top: auto;
}

.sidebar-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-contact-link:hover { color: #fff; text-decoration: none; }

.sidebar-contact-icon {
  width: 18px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  flex-shrink: 0;
}

/* LinkedIn "in" badge in sidebar */
.sidebar-contact-icon-in {
  background: #0A66C2;
  color: #fff !important;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  width: 18px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sidebar footer area (lang toggle + back btn) */
.sidebar-footer {
  padding: 16px 0 0;
}

.lang-btn {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.76);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  margin-top: 12px;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.58);
  z-index: 199;
}

/* ── CV back / Se CV button in sidebar bottom ── */
.cv-back-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(189,215,238,0.28);
  border-radius: 6px;
  color: var(--accent);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.cv-back-btn:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  text-decoration: none;
}

/* ── Main area ── */
.main-area {
  margin-left: var(--sidebar);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--navy);
  padding: 0 18px;
  height: 56px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.hamburger {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}

.mobile-site-name { color: #fff; font-size: 15px; font-weight: 750; }

/* ── Hero (legacy — kept for non-CV pages) ── */
.hero-banner {
  background: linear-gradient(to right, var(--navy) 0%, #0B2D6A 45%, #0057B8 100%);
  padding: 36px 56px 25px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cv-btn-hero {
  position: absolute;
  top: 36px;
  right: 56px;
  z-index: 2;
  background: transparent;
  border: 1px solid rgba(189,215,238,0.5);
  border-radius: 6px;
  color: var(--accent);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cv-btn-hero:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  border-color: rgba(255,255,255,0.6);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .20;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 44px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-left {
  flex: 1 1 620px;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-right {
  flex: 0 0 330px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: stretch;
  padding-top: 5px;
}

.hero-profile {
  width: 132px;
  height: 132px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.hero-profile img,
.hero-profile-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.hero-profile-mobile {
  display: none;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 4px;
}

.hero-banner h1 {
  font-size: clamp(38px, 4.1vw, 52px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.02;
  color: #fff;
  margin: 0;
}

.hero-banner h1:focus,
.hero-banner h1:focus-visible,
h1[tabindex="-1"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

.hero-role {
  font-size: 17px;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

.hero-sub {
  font-size: 14.5px;
  color: rgba(255,255,255,0.80);
  max-width: 820px;
  line-height: 1.65;
  margin: 0;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-white,
.btn-ghost,
.btn-navy,
.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn-white {
  background: #fff;
  color: var(--navy);
  border: 1px solid #fff;
}

.btn-white:hover {
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.42);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

.hero-avail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  border: 1px solid rgba(189,215,238,0.32);
  padding: 5px 11px;
  font-size: 12px;
  color: #DDEBF8;
  margin-top: 2px;
}

.hero-contact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.hero-contact-badge {
  width: 34px;
  height: 34px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}

.hero-contact-badge.teal,
.hero-contact-badge.green,
.hero-contact-badge.purple,
.hero-contact-badge.orange {
  background: rgba(255,255,255,0.10);
}

.hero-contact-text {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.hero-contact-text:hover { color: #fff; text-decoration: underline; }

/* ── Wide card grid for skills — 3 cols normally, last incomplete row fills full width ── */
.cards-grid-wide {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.cards-grid-wide .card {
  grid-column: span 2;
}

/* Last 2 cards each fill half the row (3 of 6 cols) when the row is incomplete */
.cards-grid-wide .card:nth-last-child(-n+2):nth-child(3n+1),
.cards-grid-wide .card:nth-last-child(-n+2):nth-child(3n+1) ~ .card {
  grid-column: span 3;
}

/* ── Alt section background ── */
.section-alt {
  background: #F1F5F9 !important;
}

/* ── Content sections ── */
.content-section,
.cv-section {
  padding: 52px 60px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.content-section:last-child { border-bottom: none; }
.content-section.alt-bg { background: var(--white); }

.section-eyebrow {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 7px;
}

.section-h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-h2::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 34px;
  background: var(--blue);
  border-radius: 2px;
}

.section-lead {
  font-size: 14px;
  color: var(--mid);
  max-width: 620px;
  line-height: 1.72;
  margin-bottom: 24px;
}

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 100%;
}

.about-photo img {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
}

.about-text p {
  color: var(--mid);
  margin-bottom: 13px;
  font-size: 14px;
  line-height: 1.75;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text .btn-navy { margin-top: 16px; }

.cv-profile-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cv-avail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--mid);
  margin-right: 4px;
}

.cv-pdf-btn {
  cursor: default;
  opacity: 0.6;
}

@media (max-width: 700px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-photo {
    width: 180px;
    margin: 0 auto 16px;
  }
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  background: #F8FAFF;
  border: 1px solid #E0E8FF;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-emoji {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}

.card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.card-desc {
  font-size: 12.8px;
  color: var(--mid);
  line-height: 1.55;
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
}

.tl-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.tl-item:last-child { border-bottom: 1px solid var(--border); }

.tl-meta {
  text-align: left;
  padding-top: 1px;
}

.tl-company {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 7px;
}

.tl-period {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 3px 0;
  color: #9CA3AF;
  background: transparent !important;
  text-transform: uppercase;
}

.tl-role {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 5px;
}

.tl-desc {
  font-size: 12.8px;
  color: var(--mid);
  line-height: 1.58;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-box {
  background: #F8FAFF;
  border: 1px solid #E0E8FF;
  border-radius: 8px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.stat-lbl {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  font-weight: 600;
}

/* ── Download CV section ── */
.cv-section {
  background: var(--navy);
  color: #fff;
  width: 100%;
}

.cv-section .section-eyebrow { color: var(--accent); }
.cv-section .section-h2 { color: #fff; margin-bottom: 8px; }
.cv-section .section-lead {
  color: rgba(255,255,255,0.72);
  margin-bottom: 22px;
}

.cv-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cv-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0;
  padding: 18px 20px;
  min-width: 210px;
}

.cv-flag {
  font-size: 20px;
  margin-bottom: 8px;
}

.cv-lang {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cv-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.64);
  margin-bottom: 14px;
}

.cv-btn {
  background: #fff;
  color: var(--navy);
  border: 1px solid #fff;
  min-height: 36px;
  padding: 8px 14px;
}

.cv-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* ── Contact section ── */
.contact-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  width: 100%;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.contact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 850;
  color: var(--blue);
}

/* LinkedIn "in" badge in contact section */
.contact-icon-in {
  background: #0A66C2;
  color: #fff;
  border-color: #0A66C2;
  font-size: 9px;
  font-weight: 800;
}

.contact-lbl {
  font-size: 10px;
  color: var(--gray);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.contact-val {
  font-size: 13px;
  font-weight: 650;
  color: var(--dark);
  word-break: break-word;
}

.contact-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 26px;
}

.contact-box h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.contact-box p {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.72;
  margin-bottom: 10px;
}

.contact-box p:last-of-type { margin-bottom: 18px; }

.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}

.btn-navy:hover {
  background: var(--blue);
  border-color: var(--blue);
  text-decoration: none;
}

/* ── Footer ── */
.main-footer {
  background: var(--navy);
  padding: 18px 60px;
  width: 100%;
  font-size: 12px;
  color: rgba(255,255,255,0.68);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.footer-avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(189,215,238,0.30);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 750;
  color: #DDEBF8;
}

/* ── Experience intro paragraph ── */
.experience-intro {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 24px;
}

/* ── Freightsolution callout box ── */
.freightsolution-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #EFF4FA;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  max-width: 700px;
}

.fs-callout-label {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
  padding-top: 2px;
}

.fs-callout-text {
  font-size: 13.5px;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.6;
}

/* ── Experience category grid ── */
.exp-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.exp-cat-card {
  background: #F8FAFF;
  border: 1px solid #E0E8FF;
  border-radius: 8px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-cat-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.exp-cat-title {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--navy);
  line-height: 1.3;
}

/* ── CV page: competency badges ── */
.cv-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cv-badge {
  background: #ffffff;
  border: 1px solid #CBD5E1;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── CV page: role sub-title under tl-role ── */
.tl-role-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 10px;
}

/* ── CV page: previous role list ── */
.tl-roles-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.tl-prev-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  padding-left: 12px;
  border-left: 2px solid var(--border2);
}

/* ── PDF placeholder button ── */
.cv-pdf-placeholder {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── tl-desc paragraph spacing ── */
.tl-desc p {
  margin-bottom: 8px;
  font-size: 12.8px;
  color: var(--mid);
  line-height: 1.58;
}

.tl-desc p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (min-width: 1441px) {
  .main-area {
    align-items: stretch;
  }
}

@media (max-width: 1180px) {
  .hero-right { display: none; }
  .hero-left { max-width: 100%; }
  .hero-profile-mobile { display: block; }
  .cards-grid-wide { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-wide .card { grid-column: auto; }
  .cards-grid-wide .card:nth-last-child(-n+2):nth-child(3n+1),
  .cards-grid-wide .card:nth-last-child(-n+2):nth-child(3n+1) ~ .card { grid-column: auto; }
}

@media (max-width: 900px) {
  .hero-banner,
  .content-section,
  .cv-section,
  .main-footer {
    padding-left: 30px;
    padding-right: 30px;
  }

  .contact-layout,
  .tl-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stats-grid,
  .cards-grid-wide,
  .exp-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-topbar { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.26s ease;
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; }
  .main-area { margin-left: 0; }
}

@media (max-width: 520px) {
  .hero-banner,
  .content-section,
  .cv-section,
  .main-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-banner h1 { font-size: 31px; }
  .hero-role { font-size: 15px; }
  .section-h2 { font-size: 22px; }
  .card { grid-template-columns: 1fr; gap: 5px; }
  .cv-card { min-width: 100%; }
  .exp-category-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-wide { grid-template-columns: 1fr; }
  .freightsolution-callout { flex-direction: column; gap: 6px; }
}
