/* Shared styles for index.html and spa.html */
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;color:#222;line-height:1.6;background:#fff;}
a{color:#2b6cb0;}
.container{width:94%;max-width:1100px;margin:0 auto;padding:2rem 0;}

/* Header / navigation */
header{position:sticky;top:0;background:#fff;border-bottom:1px solid #eee;z-index:20;}
.nav-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0.25rem 1rem;padding:0.75rem 0;}
.brand{font-weight:700;font-size:1.1rem;color:#222;text-decoration:none;}
nav{display:flex;flex-wrap:wrap;gap:0.25rem 1rem;}
nav a{color:#666;text-decoration:none;font-weight:600;font-size:0.95rem;}
nav a:hover,nav a[aria-current="page"]{color:#2b6cb0;}

/* Hero section with background image */
.hero{position:relative;display:flex;gap:2rem;margin-top:1rem;overflow:hidden;background:#fff;}
.hero::after{
  content:"";
  position:absolute;
  top:0;right:0;bottom:0;
  width:40%;
  background:url("img/WhatsApp Image 2025-09-06 at 3.43.23 PM (1).jpeg") center/cover no-repeat;
  z-index:0;
}
.profile{width:100%;max-width:280px;text-align:center;z-index:1;}
.profile h1{font-size:1.5rem;margin:0.5rem 0 0;line-height:1.3;}
.profile .role{font-size:1.1rem;font-weight:700;margin:0.25rem 0 0.5rem;}
.portrait{width:100%;max-width:220px;border-radius:50%;display:block;margin:0 auto 1rem;box-shadow:0 8px 20px rgba(20,20,20,0.08);}
.profile-links{display:flex;flex-wrap:wrap;justify-content:center;gap:0.4rem;margin-top:0.9rem;padding:0;list-style:none;}
.profile-links a{display:inline-block;padding:0.2rem 0.6rem;border:1px solid #d0dbe8;border-radius:6px;font-size:0.85rem;font-weight:600;text-decoration:none;}
.profile-links a:hover{background:#eef4fb;}
.bio{flex:1;min-width:0;max-width:30%;z-index:1;}
.bio h2{margin-top:0;font-size:1.1rem;}
.bio p{margin:0.6rem 0;font-size:0.98rem;}

/* Sections */
section,article{scroll-margin-top:4rem;} /* keep headings clear of the sticky header when jumping via the menu */
.section{margin-top:2.25rem;padding:1.25rem;}
.section h1,.section h2{margin:0 0 1rem;font-size:1.5rem;border-bottom:2px solid #eee;padding-bottom:0.35rem;}
.section h3{margin:1.5rem 0 0.5rem;font-size:1.15rem;}

/* Research themes */
.themes{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;}
.theme{border:1px solid #eee;border-radius:10px;padding:1rem 1.1rem;}
.theme h3{margin:0 0 0.4rem;font-size:1.05rem;}
.theme p{margin:0 0 0.5rem;font-size:0.95rem;}
.theme ul{margin:0;padding-left:1.1rem;font-size:0.88rem;color:#555;}

/* News */
.news{list-style:none;margin:0;padding:0;}
.news li{display:flex;gap:1rem;padding:0.45rem 0;border-bottom:1px dashed #e7e7e7;font-size:0.95rem;}
.news time{flex:0 0 5.5rem;color:#666;font-weight:600;}

/* Publications */
.pub{padding:0.8rem 0;border-bottom:1px dashed #e7e7e7;font-size:0.95rem;}
.pub .authors{display:block;margin-bottom:0.25rem;}
.pub .authors b{color:#000;}
.pub-links{margin-top:0.45rem;display:flex;flex-wrap:wrap;gap:0.4rem;}
.doi{display:inline-block;padding:0.25rem 0.5rem;border:1px solid #d0dbe8;color:#2b6cb0;font-size:0.88rem;text-decoration:none;border-radius:6px;}
.doi:hover{background:#eef4fb;}
.btn-toggle{display:inline-block;margin-top:1rem;background:transparent;color:#2b6cb0;border:2px solid #2b6cb0;padding:0.5rem 0.9rem;border-radius:8px;font-weight:700;cursor:pointer;font-size:0.95rem;}
.btn-toggle[aria-expanded="true"]{background:#2b6cb0;color:#fff;}

/* SPA teaser on the homepage */
.teaser{display:flex;gap:1.5rem;align-items:center;}
.teaser img{width:280px;max-width:40%;height:200px;object-fit:cover;border-radius:8px;}
.read-more{font-weight:700;text-decoration:none;}

/* SPA page: event cards */
.series{margin-top:2rem;}
.series > h3{font-size:1.2rem;margin:0 0 0.75rem;}
.card{border:1px solid #eee;border-radius:10px;padding:1rem 1.25rem;margin-bottom:1rem;}
.card h4{margin:0 0 0.4rem;font-size:1.05rem;}
.card .num{display:inline-block;min-width:2.2rem;margin-right:0.4rem;padding:0 0.4rem;background:#2b6cb0;color:#fff;border-radius:6px;font-size:0.85rem;text-align:center;}
.card p{margin:0.5rem 0;}

/* Image rows: every picture gets the same height, side by side */
.gallery{display:flex;flex-wrap:wrap;gap:1rem;margin:1rem 0;}
.gallery img{height:260px;width:auto;max-width:100%;object-fit:cover;border-radius:8px;display:block;}
.gallery figure{margin:0;display:table;}
.gallery figcaption{display:table-caption;caption-side:bottom;font-size:0.85em;font-style:italic;color:#666;margin-top:6px;}

footer{text-align:center;padding:2rem 0;color:#666;border-top:1px solid #eee;margin-top:2rem;font-size:0.92rem;}

/* Responsive */
@media (max-width:880px){
  .hero{flex-direction:column;align-items:center;text-align:center;}
  .hero::after{display:none;} /* hide background image on small screens */
  .bio{max-width:100%;} /* text full width on mobile */
  .gallery img{height:180px;}
}
@media (max-width:600px){
  header{position:static;} /* the wrapped menu is too tall to stay pinned on phones */
  .container{padding:1.25rem 0;}
  .section{padding:0.5rem 0;}
  .teaser{flex-direction:column;align-items:flex-start;}
  .teaser img{width:100%;max-width:100%;}
  .news li{flex-direction:column;gap:0;}
}
