/* ============================================================
   custom.css — Hang Zhao's homepage
   All site-specific styling lives here. Third-party CSS
   (bootstrap-Hang.css) is kept untouched so it can be swapped
   or upgraded independently.
   ============================================================ */

:root {
  --brand: #14457d;
  --brand-dark: #0e3460;
  --text: #24292f;
  --muted: #6a737d;
  --border: #e3e8ee;
  --bg-soft: #f4f6f9;
}

html {
  background: none; /* overrides dead bg.jpg rule in vendor css */
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* offset for the fixed navbar */
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  padding-top: 72px; /* clear the fixed navbar */
}

a {
  color: var(--brand);
}
a:hover,
a:focus {
  color: var(--brand-dark);
}

/* ---------- About ---------- */

.about {
  margin-top: 8px;
}

.about-name {
  position: relative;
  margin: 6px 0 4px;
  padding-bottom: 12px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.about-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.about-tagline {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 15.5px;
}

.about-side {
  text-align: center;
}

.about-photo {
  display: block;
  width: 100%;
  max-width: 190px;
  margin: 6px auto 0;
}

.about-links {
  margin-top: 14px;
  font-weight: 500;
}

.about-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid #c3cfdd;
  border-radius: 999px;
  color: var(--brand);
  font-size: 14px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.about-link-btn:hover,
.about-link-btn:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  text-decoration: none;
}

.about-contact {
  margin-top: 20px;
  padding: 13px 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  text-align: left;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.about-contact h4 {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.contact-row + .contact-row {
  margin-top: 6px;
}

.contact-row .glyphicon {
  flex-shrink: 0;
  color: var(--brand);
  font-size: 12px;
}

.about-recruit {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(20, 69, 125, 0.06);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
}

.about-main {
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 991px) {
  .about-side {
    margin-bottom: 24px;
  }
}

/* ---------- Section headings ---------- */

.middle h2 {
  position: relative;
  margin: 36px 0 8px;
  padding-bottom: 10px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.middle h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- Project cards ---------- */

.project-card {
  margin: 16px 0;
  padding: 20px 15px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.1);
}

.project-thumb img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 6px auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 8px;
}

.project-body {
  font-size: 14.5px;
  line-height: 1.65;
}

.project-body > strong:first-of-type {
  font-size: 16px;
  font-weight: 600;
}

.project-body i {
  color: var(--muted);
}

.venue {
  display: inline-block;
  margin: 2px 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(20, 69, 125, 0.08);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */

.btn-default {
  background: transparent;
  border: 1px solid #c3cfdd;
  border-radius: 6px;
  color: var(--brand);
  font-weight: 500;
  text-shadow: none;
  box-shadow: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn-default:hover,
.btn-default:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Affiliations logo wall ---------- */

.affiliations-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 14px;
}

/* neutralize the grid classes on logo items */
.affiliations-logos > [class*="col-"] {
  float: none;
  width: auto;
  min-height: 0;
  padding: 0;
}

.affiliations-logos img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* ---------- Navbar polish ---------- */

.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.navbar-nav > li > a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
