/* Academic portfolio — inspired by Wowchemy / academic personal sites */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --citation: #1b7f3b;
  --citation-dark: #14602c;
  --text: #4a4a4a;
  --heading: #2b2b2b;
  --muted: #6c757d;
  --border: #dee2e6;
  --bg: #fff;
  --bg-soft: #f8f9fa;
  --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --font-sans: "Roboto", system-ui, -apple-system, sans-serif;
  --font-heading: "Montserrat", "Roboto", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;
  --max-width: 1140px;
  --nav-height: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.inner-page {
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col-12 {
  width: 100%;
  padding: 0 0.75rem;
}

.col-lg-4 {
  width: 100%;
  padding: 0 0.75rem;
}

.col-lg-8 {
  width: 100%;
  padding: 0 0.75rem;
}

.col-md-7 {
  width: 100%;
  padding: 0 0.75rem;
}

@media (min-width: 992px) {
  .col-lg-4 {
    width: 33.333%;
  }

  .col-lg-8 {
    width: 66.667%;
  }
}

@media (min-width: 768px) {
  .col-md-7 {
    width: 58.333%;
  }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  /* Avoid backdrop-filter: it breaks click hit-testing in Chromium/Electron. */
  pointer-events: none;
}

.navbar .container,
.navbar-inner,
.navbar-brand,
.nav-toggle,
.navbar-nav,
.navbar-nav li,
.navbar-nav a {
  pointer-events: auto;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-brand:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  color: var(--heading);
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.navbar-nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem;
}

.navbar-nav.open {
  display: block;
}

.navbar-nav li {
  display: block;
  width: 100%;
  margin: 0;
}

.navbar-nav a {
  display: block;
  width: 100%;
  padding: 0.75rem 0.25rem;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  text-decoration: none;
}

@media (min-width: 1100px) {
  .navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--nav-height);
  }

  .navbar-inner {
    min-height: 0;
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: none;
  }

  .navbar-nav,
  .navbar-nav.open {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    padding: 0;
    gap: 0.1rem;
  }

  .navbar-nav li {
    width: auto;
  }

  .navbar-nav a {
    width: auto;
    padding: 0.45rem 0.6rem;
    white-space: nowrap;
  }
}

/* Sections */
.home-section {
  padding: 2.5rem 0;
}

.inner-page .home-section:first-of-type {
  padding-top: 2.75rem;
}

.section-heading h1,
.section-heading h2.home-block-title {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 992px) {
  .section-heading {
    padding-top: 0.15rem;
  }

  .section-heading h1,
  .section-heading h2.home-block-title {
    margin-bottom: 0;
  }
}

.section-subheading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.25rem 0 0.75rem;
}

.page-intro {
  margin-bottom: 1.5rem;
  max-width: 46rem;
}

#about .page-intro {
  margin-top: 2rem;
}

.home-updates {
  margin-top: 3.5rem;
}

.page-intro h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-intro p {
  margin: 0;
}

/* About / profile */
#profile {
  text-align: center;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 270px;
  height: 270px;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  padding: 0;
  background: #fff;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.portrait-title {
  margin-top: 1rem;
}

.portrait-title h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.portrait-title h3 {
  margin: 0.15rem 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
}

.portrait-title h3 a {
  color: var(--muted);
}

.portrait-title h3 a:hover {
  color: var(--primary);
}

.network-icon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.network-icon a {
  color: var(--heading);
  font-size: 1.35rem;
  text-decoration: none;
}

.network-icon a:hover {
  color: var(--primary);
}

.article-style p {
  margin: 0 0 1rem;
}

#about .article-style {
  text-align: justify;
  text-justify: inter-word;
}

.article-style p:last-child {
  margin-bottom: 0;
}

.ul-edu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ul-edu li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.65rem;
}

.ul-edu li:last-child {
  margin-bottom: 0;
}

.ul-edu .fa-li-icon {
  color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.ul-edu .course {
  margin: 0;
  font-weight: 600;
  color: var(--heading);
}

.ul-edu .institution {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-block-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 992px) {
  /* Match the left edge of the centered name ("Md Zubair") in the profile column. */
  body:not(.inner-page) .home-block-title {
    margin-left: calc(50% - 4.6rem);
  }
}

.updates-list {
  margin-top: 0;
  padding-top: 0;
}

.updates-list p {
  margin: 0 0 0.85rem;
}

.updates-list p:last-child {
  margin-bottom: 0;
}

/* Experience timeline */
.experience-item {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.timeline {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 40px;
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .timeline {
    display: flex;
  }
}

.timeline-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  min-height: 12px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
  flex-shrink: 0;
  margin: 0.5rem 0;
}

.timeline-dot.fill {
  background: var(--primary);
}

.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.25rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 0.85rem;
}

.card-body {
  padding: 1rem 1.15rem;
}

.exp-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.exp-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.exp-logo-pad img {
  width: 78%;
  height: 78%;
}

.exp-logo-ull img {
  object-fit: contain;
  padding: 4px;
}

.exp-logo-uu {
  background: #111;
}

.exp-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}

.exp-company {
  margin: 0.15rem 0;
  color: var(--muted);
}

.exp-company a {
  color: var(--muted);
}

.exp-company a:hover {
  color: var(--primary);
}

.exp-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.middot-divider::before {
  content: "·";
  margin: 0 0.4rem;
  color: var(--muted);
}

.exp-desc {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

.voluntary-block {
  margin-top: 0.35rem;
  padding: 0.85rem 1.1rem 0.35rem;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 0.4rem;
}

.voluntary-block .section-subheading {
  margin-top: 0;
}

.voluntary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.voluntary-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.voluntary-list li:last-child {
  border-bottom: none;
}

.voluntary-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.voluntary-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.voluntary-title {
  margin: 0;
  font-weight: 600;
  color: var(--heading);
}

.voluntary-title a {
  color: var(--heading);
  text-decoration: none;
}

.voluntary-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Raster certificate marks need breathing room inside the logo tile. */
#education .voluntary-logo img {
  padding: 3px;
}

.voluntary-desc a {
  font-size: 0.85rem;
  font-weight: 500;
}

.voluntary-org {
  font-weight: 400;
  color: var(--muted);
}

.voluntary-org a {
  color: var(--muted);
}

.voluntary-org a:hover {
  color: var(--primary);
}

.voluntary-meta {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.voluntary-desc {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
}

/* Awards */
.award-card .exp-title {
  font-size: 1rem;
}

.award-card .card-subtitle {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.edu-certs {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.cert-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cert-card {
  margin-bottom: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.08);
}

.cert-card .card-body {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.cert-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 86, 210, 0.22);
}

.cert-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cert-logo-dq {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(48, 56, 78, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-logo-dq img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

/* Publications */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:first-child {
  padding-top: 0;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.35rem;
}

.pub-meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.pub-venue {
  font-style: italic;
  color: var(--heading);
}

.pub-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(21, 101, 192, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.4rem;
}

.pub-authors {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #5f6a75;
  margin: 0 0 0.4rem;
}

.pub-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
}

.pub-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.pub-metric strong {
  color: var(--heading);
  font-weight: 600;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.pub-links a {
  font-size: 0.85rem;
  font-weight: 500;
}

.pub-type-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--heading);
}

.pub-type-label:first-child {
  margin-top: 0;
}

#publications .article-topic {
  margin-bottom: 1.75rem;
}

#publications .article-topic:last-child {
  margin-bottom: 0;
}

.author-me {
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 2px solid rgba(21, 101, 192, 0.35);
}

/* Articles */
.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 2.25rem;
}

.publication-filters {
  align-items: center;
  justify-content: space-between;
}

.scholar-total {
  color: var(--citation);
  font-size: 0.9rem;
  text-decoration: none;
}

.scholar-total strong {
  color: var(--citation);
}

.scholar-total:hover {
  color: var(--citation-dark);
  text-decoration: none;
}

.pub-links a[data-scholar-citations] {
  color: var(--citation);
}

.pub-links a[data-scholar-citations]:hover {
  color: var(--citation-dark);
}

.filter-select-label {
  position: relative;
  display: inline-flex;
}

.filter-select {
  width: 5.25rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--heading);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.article-topic {
  margin-bottom: 3.5rem;
}

.article-topic:last-child {
  margin-bottom: 0;
}

.article-topic.hidden {
  display: none;
}

.article-topic-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.35rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.article-topic-title::before,
.article-topic-title::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--border);
}

.article-topic-title span {
  flex: 0 0 auto;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .article-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.article-card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.25rem;
  padding: 1rem;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.article-card h3 a {
  display: inline;
}

.article-card:hover {
  border-color: rgba(21, 101, 192, 0.35);
  box-shadow: 0 0.35rem 0.75rem rgba(21, 101, 192, 0.08);
}

.article-card:not(:has(h3 a)) {
  cursor: default;
}

.article-card .pub-year {
  margin-bottom: 0.15rem;
}

.article-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.article-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--heading);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

/* Contact */
.contact-panel {
  max-width: 40rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  position: relative;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.contact-list li:has(a) {
  cursor: pointer;
}

.contact-list li a {
  position: relative;
  z-index: 1;
}

.network-icon.start {
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.contact-list i {
  color: var(--primary);
  margin-top: 0.25rem;
  width: 1.1rem;
  text-align: center;
}

.contact-label {
  font-weight: 600;
  color: var(--heading);
  margin: 0;
}

.contact-value {
  margin: 0.1rem 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* Utility */
.mb-0 {
  margin-bottom: 0 !important;
}

.mt-2 {
  margin-top: 0.75rem;
}

.text-muted {
  color: var(--muted);
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.section-heading {
  text-align: left;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff !important;
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
}

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

.cv-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--primary);
  border-radius: 4px;
  color: var(--primary) !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.cv-download-icon:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary-dark) !important;
}

.cv-btn-outline {
  background: #fff;
  color: var(--primary) !important;
}

.cv-btn-outline:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary-dark) !important;
}

.cv-btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.cv-modal[hidden] {
  display: none;
}

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.cv-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height: min(88vh, 920px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.cv-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.cv-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cv-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--heading);
  cursor: pointer;
}

.cv-modal-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cv-modal-body {
  flex: 1;
  min-height: 0;
  background: var(--bg-soft);
}

.cv-modal-body object,
.cv-modal-body iframe,
.cv-modal-body embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cv-fallback {
  margin: 2rem 1.25rem;
  color: var(--muted);
  text-align: center;
}

body.cv-modal-open {
  overflow: hidden;
}

.ongoing-box {
  background: rgba(21, 101, 192, 0.05);
  border-left: 3px solid var(--primary);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.ongoing-box h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
