/* ===========================
   VCP-Lab — main.css
   =========================== */

:root {
  --navy:    #0d1b2a;
  --blue:    #1a56a0;
  --accent:  #e8392a;
  --light:   #f5f7fa;
  --border:  #dde3ea;
  --text:    #1e2b3a;
  --muted:   #5a6a7a;
  --white:   #ffffff;
}

/* ---------- Base ---------- */
body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', serif;
  color: var(--navy);
}

/* Navbar logo */
.navbar-logo {
  height: 38px;
  width: auto;
  /* Invert to white so it shows on dark navbar 
  filter: brightness(0) invert(1);*/
}

/* Hero logo */
.hero-logo {
  /* 
  height: 60px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
   */
   display: none;
}

/* Keep brand text as fallback if logo fails */

/* ---------- Navbar ---------- */
#mainNav {
  background: var(--white);
  padding: 0.6rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}

.brand-text {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.brand-dot { color: var(--accent); margin: 0 1px; }

#mainNav .nav-link {
  color: var(--navy) !important;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.85rem !important;
  text-transform: uppercase;
  transition: color 0.2s;
}
#mainNav .nav-link:hover { color: var(--accent) !important; }

.navbar-toggler {
  border-color: var(--navy);
}
.navbar-toggler-icon {
  filter: invert(1) brightness(0); /* dark hamburger icon */
}

/* ---------- Hero / Slider ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: var(--white);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Source Serif 4', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Carousel */
.hero-carousel .carousel-inner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
}
.carousel-placeholder {
  width: 100%; height: 320px;
  background: linear-gradient(135deg, #1a3a5c, #0d2540);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem; letter-spacing: 0.08em;
}

/* ---------- Main content wrap ---------- */
.main-wrap {
  padding: 0;
}

/* ---------- Home sections ---------- */
.home-content {
  padding: 2.5rem 0;
}

.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.section-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ---------- News ---------- */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li {
  display: flex;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  line-height: 1.5;
}
.news-list li:last-child { border-bottom: none; }
.news-date {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 82px;
  padding-top: 2px;
}
.news1 { color: var(--accent); font-weight: 700; }
.news2 { color: var(--blue); }

.news-list li .badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}
.badge-dot.news1 { background: var(--accent); }
.badge-dot.news2 { background: var(--blue); }

/* ---------- Page layouts ---------- */
.page-header {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 2rem;
  margin: 0;
}

.content-section {
  padding: 0 0 3rem;
}

/* ---------- Team cards ---------- */
.team-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: box-shadow 0.2s;
  margin-bottom: 1.25rem;
}
.team-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.team-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; background: var(--border);
  margin: 0 auto 1rem;
  display: block;
}
.team-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.team-role { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.4rem; }
.team-info { font-size: 0.82rem; color: var(--muted); }

/* ---------- Publications ---------- */
.pub-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:last-child { border-bottom: none; }
.pub-title { font-weight: 600; font-size: 0.97rem; margin-bottom: 0.2rem; }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--blue); }
.pub-meta { font-size: 0.85rem; color: var(--muted); }
.pub-highlight { border-left: 3px solid var(--accent); padding-left: 1rem; }

/* ---------- Projects ---------- */
.project-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.project-logo {
  width: 120px;
  min-width: 120px;
  text-align: center;
  flex-shrink: 0;
}
.project-logo img {
  max-width: 120px;
  max-height: 70px;
  object-fit: contain;
}
.project-body {
  min-width: 0;
}

@media (max-width: 575.98px) {
  .project-item {
    gap: 14px;
  }
  .project-logo {
    width: 82px;
    min-width: 82px;
  }
  .project-logo img {
    max-width: 82px;
    max-height: 56px;
  }
}

/* ---------- Standardization ---------- */
.standardization-list {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ---------- Media ---------- */
.media-grid {
  display: grid;
  gap: 1.5rem;
}
.media-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.media-card h3 {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.media-link,
.media-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.media-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-image img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
}
.footer-lab {
  font-weight: 700; color: var(--white);
  font-size: 1rem; margin-bottom: 0.3rem;
}
.footer-affil { margin-bottom: 0.4rem; line-height: 1.5; }
.footer-affil a, .footer-contact a, .footer-credit a {
  color: rgba(255,255,255,0.75);
}
.footer-affil a:hover, .footer-contact a:hover, .footer-credit a:hover {
  color: var(--white); text-decoration: underline;
}
.footer-credit { font-size: 0.8rem; margin: 0; }

/* ---------- Publications (USLC-style) ---------- */
.pub-container { max-width: 900px; }

.pub-section-title {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

/* Highlight cards */
.pub-highlight-card {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.pub-highlight-img { flex-shrink: 0; width: 160px; }
.pub-highlight-img img { width: 100%; border-radius: 4px; border: 1px solid var(--border); }
.pub-highlight-body { flex: 1; }
.pub-highlight-desc { font-size: 0.92rem; color: var(--text); line-height: 1.65; margin-bottom: 0.75rem; }
.pub-highlight-authors { font-size: 0.9rem; color: var(--muted); font-style: italic; margin-bottom: 0.3rem; }
.pub-highlight-ref { font-size: 0.92rem; margin: 0; }
.pub-highlight-ref a { color: var(--blue); }

/* Year headings */
.pub-year-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

/* Numbered publication list */
.pub-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}
.pub-entry {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eef0f3;
  font-size: 0.93rem;
  line-height: 1.55;
}
.pub-entry:last-child { border-bottom: none; }
.pub-title-line { margin-bottom: 0.2rem; }
.pub-authors { color: var(--muted); margin-bottom: 0.15rem; }
.pub-venue { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.4rem; }

/* Link pills */
.pub-links { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.3rem; }
.pub-link {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.03em;
}
.pub-link:hover, .pub-link.active {
  background: var(--blue);
  color: var(--white);
}

/* Collapsible abstract / bibtex */
.pub-collapsible {
  display: none;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--light);
  border-left: 3px solid var(--blue);
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
}
.pub-collapsible.open { display: block; }
.pub-bibtex pre {
  margin: 0;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
}

/* ---------- Research (USLC-style) ---------- */
.research-container { max-width: 900px; }

.research-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.research-theme {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.research-theme:last-of-type { border-bottom: none; }

.theme-image-wrap {
  float: right;
  margin: 0 0 1rem 1.5rem;
  width: 220px;
}
.theme-image-wrap img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.theme-title {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.theme-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.theme-members {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.theme-papers { clear: both; }
.theme-papers-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.theme-papers .pub-list { padding-left: 1.2rem; }
.theme-papers .pub-entry {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .hero-carousel .carousel-inner img { height: 200px; }
  .carousel-placeholder { height: 200px; }
}

/* ---------- Album (from red site) ---------- */
.album-event {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.album-event:last-child { border-bottom: none; }
.album-event h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.album-photos { margin-top: 0.75rem; }
.album-photos [class*="col-"] { margin-bottom: 0.75rem; }
.album-photos img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
  object-fit: cover;
}
