/* ============================================================
   Smart-Cyber-AI Lab — Faithful recreation of Google Sites design
   ============================================================ */

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

:root {
  --blue:      #1a73e8;
  --blue-dark: #1558b0;
  --teal:      #009688;
  --text:      #202124;
  --text-muted:#5f6368;
  --border:    #dadce0;
  --bg:        #ffffff;
  --bg-gray:   #f8f9fa;
  --font:      'Roboto', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

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

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

/* ── Top bar ──────────────────────────────────────────────── */
.topbar {
  background: #00838f;   /* teal header matching screenshot */
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-text {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  width: 100%;
  position: relative;
  background: #e8f0fe;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  width: 100%;
}
.hero-fallback h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  color: #1a3c8f;
  line-height: 1.05;
  letter-spacing: -1px;
}

/* ── Logo strip ───────────────────────────────────────────── */
.logo-strip {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: #fff;
}
.logo-strip-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.lab-logo {
  height: 300px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.lab-tagline {
  flex: 1;
  text-align: center;
  font-size: 23px;
  color: var(--blue);
  line-height: 1.6;
  font-weight: 500;
}
.tagline-bold {
  font-weight: 800;
  color: var(--blue);
  font-size: 20px;
}
.suny-logo {
  height: 110px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Generic section styles ───────────────────────────────── */
.content-section {
  padding: 32px 0;
}
.centered-section { text-align: center; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-divider {
  height: 1px;
  background: var(--border);
  max-width: 860px;
  margin: 0 auto;
}

.section-h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-h2-blue {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
  text-align: center;
}

.body-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 720px;
  text-align: justify;
}

/* ── Bio layout ───────────────────────────────────────────── */
.bio-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.bio-left {}

.director-photo {
  width: 260px;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}

.contact-line {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-line a { color: var(--blue); font-size: 14px; }

.dir-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.4;
}
.dir-dept, .dir-inst {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.bio-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  transition: background 0.2s;
}
.btn-linkedin:hover { background: #f1f3f4; text-decoration: none; }

.btn-publications {
  display: inline-block;
  padding: 7px 16px;
  background: var(--blue);
  color: #fff !important;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-publications:hover { background: var(--blue-dark); text-decoration: none; }

.bio-right {}

.bio-director-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.bio-short-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── Diagram images ───────────────────────────────────────── */
.diagram-img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  display: block;
}

#research-topics .container,
#research-methods .container {
  max-width: 1100px;
}

.img-ph {
  width: 100%;
  max-width: 760px;
  height: 320px;
  margin: 0 auto;
  background: var(--bg-gray);
  border: 2px dashed var(--border);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Collaboration grid ───────────────────────────────────── */
.collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.collab-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.collab-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 12px;
}

.scvic-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.scvic-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.scvic-text p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 2px;
}
.scvic-text strong {
  color: var(--text);
}

.collab-location {
  font-size: 13px;
  color: var(--text);
  text-align: center;
  margin-top: 8px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  background: var(--bg-gray);
  margin-top: 40px;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-dot { color: var(--border); }
.footer-link { color: var(--text-muted); font-size: 12px; }
.footer-link:hover { color: var(--blue); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 680px) {
  .logo-strip-inner { flex-direction: column; text-align: center; }
  .bio-layout        { grid-template-columns: 1fr; }
  .director-photo    { width: 160px; }
  .collab-grid       { grid-template-columns: 1fr; }
}
