:root{
  --text: #222;
  --muted: #666;
  --line: #e6e6e6;
  --accent: #0b7a75; /* teal-ish like Grosfeld vibe */
  --bg: #ffffff;
  --container: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo{
  height: 160px;      /* adjust later */
  width: auto;
  display: block;
}

/* nav */
.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.nav__link{
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav__link:hover{
  color: var(--accent);
  border-bottom-color: rgba(11,122,117,0.35);
}

/* hero banner */
.hero{
  height: 260px; /* Grosfeld-like proportion */
  width: 100%;
  background-image: url("assets/hero.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.0)
  );
}

/* layout */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px 28px; /* top = 0 */
}




.section{
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child{
  border-bottom: 0;
}

h1{
  margin: 0 0 10px 0;
  font-size: 42px;
  font-weight: 650;
}

h2{
  margin: 0 0 10px 0;
  font-size: 24px;
}

p{
  margin: 0 0 12px 0;
  color: var(--text);
  line-height: 1.55;
}

ul{
  margin: 0;
  padding-left: 18px;
}


.split{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}

.card{
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.footer{
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer__inner{
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* responsive */
@media (max-width: 820px){
  .brand__logo{ height: 80px; }
  .hero{ height: 200px; }
  h1{ font-size: 34px; }
  .split{ grid-template-columns: 1fr; }
}


/* publications */
.publist{
  margin: 10px 0 0 0;
  padding-left: 18px;
}

.publist li{
  margin-bottom: 14px;
  line-height: 1.45;
}

.pub-authors{
  color: var(--muted);
  font-size: 14px;
}

.pub-journal{
  font-style: italic;
}

.pub-year{
  color: var(--muted);
}

.pub-more{
  margin-top: 10px;
  font-size: 14px;
}



.pub-ol li {
  margin-bottom: 14px;
  line-height: 1.35;
}



.profile-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.profile-links a{
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}
.profile-links a:hover{
  transform: translateY(-1px);
}


/* --- two-column layout like Grosfeld --- */
.layout{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns:  320px 1fr;
  gap: 0;
  align-items: stretch; /* important */

}


.main{
  padding: 32px 32px 64px;
  background: #fff;
}

.sidebar{
  background: #3aa08f;  /* your panel color */
  color: #fff;
  padding: 24px;
  align-self: stretch;  /* important: makes it full height of the grid row */
}


.sidebar-inner{
  position: sticky;
  top: 0;
  padding-top: 20px;
}



.sidebar h3{
  margin: 6px 0 14px;
  font-size: 28px;
  font-weight: 700;
}

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

.side-list li{
  margin: 0 0 12px;
  line-height: 1.45;
}

.side-meta{
  display: inline-block;
  margin-top: 4px;
  opacity: 0.85;
  font-size: 14px;
}


.poster-block{
  margin-top: 10px;
  text-align: center;
}

.poster-thumb{
  width: 100%;
  max-width: 420px;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-thumb:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.poster-caption{
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}


.teaching-feedback-link{
  margin-top: 16px;
}

.feedback-button{
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  color: var(--accent);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.feedback-button:hover{
  background: var(--accent);
  color: #fff;
}


/* Mobile: sidebar goes under content */
@media (max-width: 900px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ position: relative; top: auto; min-height: auto; }
  .sidebar-inner{ position: relative; top: auto; }
}





.section{
  scroll-margin-top: 110px; /* so anchors don’t hide under sticky topbar */
}



/* reserch section */

.research-figure{
  max-width: 560px !important;
  margin: 18px auto 20px !important;
  padding: 14px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}

.research-figure img{
  display: block !important;
  width: 100% !important;
  max-width: 520px !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
}


.research-figure figcaption{
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}



.hero-container {
  position: relative;
  text-align: center;
}

.hero-container video {
  width: 100%;
}

.hero-video {
  width: 100%;
  max-width: 600px;   /* ← change this number */
  height: auto;
  display: block;
  margin: 2rem auto;
}






.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #222;
}



/* ===== Mobile (single clean block) ===== */
@media (max-width: 900px){

  /* header layout */
  .topbar__inner{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand__logo{ height: 110px; }

  .nav{
    justify-content: center;
    gap: 12px;
  }

  .nav__link{
    font-size: 15px;
    padding: 6px 6px;
  }

  .hero{ height: 170px; }

  /* STACK: main first, sidebar second */
  .layout{
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
  }
  .main{ grid-area: main; padding: 22px 16px 40px; }
  .sidebar{ grid-area: sidebar; }

  /* CRITICAL: disable sticky/full-height sidebar on mobile */
  .sidebar{
    position: static;
    top: auto;
    min-height: auto;
    height: auto;
    align-self: stretch;
  }
  .sidebar-inner{
    position: static;
    top: auto;
    padding-top: 12px;
  }

  /* cards stack */
  .split{ grid-template-columns: 1fr; }

  /* titles */
  h1{ font-size: 32px; }
  h2{ font-size: 22px; }

  /* profile chips */
  .profile-links{ gap: 8px; }
  .profile-links a{
    font-size: 13px;
    padding: 6px 9px;
  }
}



.footer-logos{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-logos img{
  height: 34px;           /* small & professional */
  width: auto;
  opacity: 0.75;          /* not loud */
  transition: opacity 0.2s ease;
}

.footer-logos img:hover{
  opacity: 1;
}


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