:root {
  --npp-blue: #003580;
  --npp-blue-dark: #002260;
  --npp-blue-mid: #1a4a96;
  --npp-blue-light: #e8edf8;
  --npp-red: #ce1126;
  --npp-red-dark: #9e0d1c;
  --white: #ffffff;
  --off-white: #f7f8fc;
  --cream: #fafafa;
  --text-dark: #0d1e3a;
  --text-mid: #3a4f6e;
  --text-muted: #7088a8;
  --border: rgba(0, 53, 128, 0.12);
  --ff-serif: "Playfair Display", Georgia, serif;
  --ff-sans: "DM Sans", sans-serif;
  --shadow-sm: 0 2px 16px rgba(0, 53, 128, 0.08);
  --shadow-md: 0 8px 40px rgba(0, 53, 128, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}

/* ── HEADLINE BANNER ── */
.headline {
  background: var(--npp-blue-dark);
  position: relative;
  overflow: hidden;
  padding: 80px 5% 70px;
  text-align: center;
}
.headline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(206, 17, 38, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(26, 74, 150, 0.2) 0%,
      transparent 50%
    );
}
.headline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--npp-red),
    var(--npp-blue-mid),
    var(--npp-red)
  );
}
.headline-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0px,
    rgba(255, 255, 255, 1) 1px,
    transparent 1px,
    transparent 80px
  );
}
.headline-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.headline-tag::before,
.headline-tag::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--npp-red);
}
.headline h1 {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeDown 0.9s ease 0.1s forwards;
}
.headline h1 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}
.headline-sub {
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 14px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeDown 0.9s ease 0.3s forwards;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 5%;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a {
  color: var(--npp-blue);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--npp-red);
}
.breadcrumb-sep {
  color: var(--npp-red);
  font-size: 10px;
}

/* ── MAIN LAYOUT ── */
.bio-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  padding: 60px 5% 80px;
  align-items: start;
}

/* ── SIDEBAR ── */
.bio-sidebar {
  position: sticky;
  top: 100px;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.profile-card-top {
  background: var(--npp-blue-dark);
  height: 80px;
  position: relative;
}
.profile-card-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--npp-red);
}
.profile-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -48px;
  padding: 0 24px;
}
.profile-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--white);
  background: var(--npp-blue-light) url("../images/portrait.jpg") center/cover
    no-repeat;
  box-shadow: 0 4px 20px rgba(0, 53, 128, 0.2);
  flex-shrink: 0;
}
.profile-info {
  padding: 16px 24px 24px;
  text-align: center;
}
.profile-name {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--npp-blue-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}
.profile-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--npp-red);
  margin-bottom: 16px;
}
.profile-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}
.profile-meta {
  display: grid;
  gap: 10px;
}
.pmeta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}
.pmeta-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 70px;
  padding-top: 1px;
}
.pmeta-val {
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.4;
}
.npp-badge-sm {
  display: inline-block;
  background: var(--npp-blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

/* Quick facts card */
.quick-facts {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.qf-head {
  background: var(--npp-blue-dark);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qf-head span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.qf-head::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--npp-red);
  border-radius: 2px;
}
.qf-body {
  padding: 16px 20px;
  display: grid;
  gap: 2px;
}
.qf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.qf-item:last-child {
  border-bottom: none;
}
.qf-key {
  color: var(--text-muted);
  font-weight: 500;
}
.qf-val {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}
.qf-val.red {
  color: var(--npp-red);
}

/* Nav TOC */
.bio-toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.toc-head {
  background: var(--npp-red);
  padding: 14px 20px;
}
.toc-head span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.toc-list {
  padding: 8px 0;
  list-style: none;
}
.toc-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.toc-list li a:hover {
  color: var(--npp-blue);
  background: var(--npp-blue-light);
  border-left-color: var(--npp-red);
}
.toc-list li a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--npp-red);
  flex-shrink: 0;
}

/* ── MAIN CONTENT ── */
.bio-main {
  min-width: 0;
}

/* Section blocks */
.bio-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px 44px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.bio-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.bio-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.bio-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--npp-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.bio-section-title {
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--npp-blue-dark);
  line-height: 1.2;
}
.bio-section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--npp-red), transparent);
}

.bio-section p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 18px;
}
.bio-section p:last-child {
  margin-bottom: 0;
}

/* Highlight intro block */
.bio-intro {
  background: var(--npp-blue-dark);
  border-radius: 6px;
  padding: 36px 44px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.bio-intro.visible {
  opacity: 1;
  transform: translateY(0);
}
.bio-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--npp-red);
}
.bio-intro::after {
  content: '"';
  position: absolute;
  bottom: -30px;
  right: 24px;
  font-family: var(--ff-serif);
  font-size: 160px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}
.bio-intro p {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}
.bio-intro p strong {
  font-style: normal;
  color: var(--white);
}

/* Stats row */
.bio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.bio-stats.visible {
  opacity: 1;
  transform: translateY(0);
}
.bstat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.bstat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--npp-red);
}
.bstat-num {
  font-family: var(--ff-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--npp-blue-dark);
  line-height: 1;
  display: block;
}
.bstat-num span {
  color: var(--npp-red);
}
.bstat-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 8px;
}

/* Education timeline */
.edu-timeline {
  display: grid;
  gap: 16px;
}
.edu-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: 4px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--npp-blue);
  transition:
    border-left-color 0.2s,
    background 0.2s;
}
.edu-item:hover {
  border-left-color: var(--npp-red);
  background: var(--white);
}
.edu-icon {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--npp-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.edu-degree {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--npp-blue-dark);
  margin-bottom: 3px;
}
.edu-school {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Committee tags */
.committee-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.ctag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--npp-blue-light);
  border: 1px solid rgba(0, 53, 128, 0.2);
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--npp-blue-dark);
}
.ctag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--npp-red);
  border-radius: 50%;
  flex-shrink: 0;
}
.ctag.ranking {
  background: rgba(206, 17, 38, 0.08);
  border-color: rgba(206, 17, 38, 0.25);
  color: var(--npp-red-dark);
}
.ctag.ranking::before {
  background: var(--npp-red);
}

/* Election result card */
.election-card {
  background: var(--npp-blue-dark);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}
.election-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--npp-red);
}
.election-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.election-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.election-candidate {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.election-party {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}
.election-votes {
  text-align: right;
}
.election-num {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.election-pct {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.election-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 6px;
}
.election-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--npp-red);
}

/* Gallery strip */
.bio-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 260px;
}
.bg-cell {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.bg-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s,
    filter 0.5s;
  filter: saturate(0.6);
}
.bg-cell:hover img {
  transform: scale(1.08);
  filter: saturate(1);
}
.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 26, 96, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.bg-cell:hover .bg-overlay {
  opacity: 1;
}

@media (max-width: 1024px) {
  .bio-layout {
    grid-template-columns: 1fr;
  }
  .bio-sidebar {
    position: static;
  }
  .bio-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .bio-section {
    padding: 28px 24px;
  }
  .bio-intro {
    padding: 28px 24px;
  }
  .bio-stats {
    grid-template-columns: 1fr 1fr;
  }
  .bio-gallery {
    grid-template-columns: repeat(2, 1fr);
    height: 300px;
  }
  .bio-section-header {
    flex-wrap: wrap;
  }
  .bio-section-rule {
    display: none;
  }
}
