:root {
  --primary: #2E5497;
  --accent: #E8A602;
  --bg: #ffffff;
  --text: #0f172a;
  --card: #f7f9fc;
  --border: #e5e7eb;
}

[data-theme="dark"] {
  --bg: #0c1220;
  --text: #e5e7eb;
  --card: #141b2e;
  --border: #24314b;
}

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

/* body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
} */

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 300px;
}

/*  */
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../../../files/images/logo/background.webp") center/cover no-repeat;
  filter: blur(2px) brightness(0.82);
  transform: scale(1.08);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.22)
  );
  z-index: -1;
}

[data-theme="dark"] body::after {
  background: linear-gradient(
    135deg,
    rgba(7, 12, 24, 0.60),
    rgba(7, 12, 24, 0.40)
  );
}
/*  */

a { 
  color: var(--primary); 
  text-decoration: none; 
  transition: color .2s; 
}
a:hover { 
  color: var(--accent); 
}

.topbar {
  position: fixed; 
  top: 0; 
  width: 100%;
  background: var(--primary); 
  color: #fff;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 14px 24px; 
  z-index: 1000; 
  border-bottom: 2px solid #ccc;
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-weight: 600; }
.logo img { 
  width: 42px; 
  height: 42px; 
  object-fit: contain; 
  display: block; 
}
.logo-text { 
  font-size: 1.05rem; 
  max-width: 340px; 
}

.nav { 
  display: flex; 
  gap: 18px; 
  font-size: 1.2rem; 
}

.nav-link { 
  color:#fff; 
  font-size: 1.3rem;
  font-weight:500; 
  position:relative; 
  display:inline-block; 
  margin-right: 15px;
}
.nav-link::after{
  content:""; 
  position:absolute; 
  left:0; 
  bottom:-6px; 
  width:100%; 
  height:2px;
  background:var(--accent); 
  transform:scaleX(0); 
  transform-origin:bottom right; 
  transition:transform .5s ease;
}
.nav-link:hover::after{ 
  transform:scaleX(1); 
  transform-origin:bottom left; 
}
.nav-link.active{ 
  color:var(--accent); 
}
.nav-link.active::after{ 
  transform:scaleX(1); 
}

.actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}


.theme-toggle, .hamburger, .lang-toggle {
  background: #fff;
  color: var(--primary);
  border: none;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex: 0 0 36px;  
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle {
  padding:4px 4px 8px 4px;
}

.hamburger {
  display: none;
}

.lang-toggle img { 
  width:25px; 
  height:25px; 
  object-fit:contain; 
  display:block; 
}

.page {
  margin: 0 auto;
  max-width: 1500px;
  padding: 110px 8vw 60px;
}
.section { 
  margin-top: 28px; 
}
.section h2 { 
  font-size:1.6rem; 
  margin-bottom:14px; 
  color:var(--primary); 
}

/* .card {
  padding: 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
} */

/*  */
.card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(165%);
  backdrop-filter: blur(14px) saturate(165%);
}

[data-theme="dark"] .card {
  background: rgba(20, 27, 46, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/*  */

.split-layout {
  display: grid;
  grid-template-columns: 3fr 6fr;
  gap: 16px;
  align-items: stretch;
}

.split-left, .split-right {
  height: auto;
  min-height: 0;
}

.scroll-col {
  height: auto;
  overflow: visible;
}

.split-left {
  display: flex;
  flex-direction: column;
}

.split-right h3 { 
  margin-bottom: 8px; 
  color: var(--primary); 
  font-size: 1.5rem;
}
.split-right p {
  font-size: 1.2rem;
  margin-bottom: 8px; 
}

.profile-photo {
  width: 100%;
  max-width: 300px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
}

.person-name {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: var(--primary);
}

.person-title {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 5px;
  opacity: .9;
}

.timeline { 
  padding-left: 20px; 
}

.timeline li { 
  margin-bottom: 8px; 
  font-size: 1.2rem;
}

.sub-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: color-mix(in srgb, var(--card) 85%, white 15%);
}
.sub-card + .sub-card { 
  margin-top: 14px; 
}

.list, .pub-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* .list-item {
  display: grid;
  gap: 16px;
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.pub-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  align-items: center;
} */


/*  */
.pub-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: rgba(255,255,255,0.30);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.45);
  align-items: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.45);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}

[data-theme="dark"] .pub-item {
  background: rgba(20,27,46,0.34);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
/*  */

/*  */
.list-item {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;

  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.45);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}

[data-theme="dark"] .list-item {
  background: rgba(20,27,46,0.34);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
/*  */

.list-item img, .pub-item img {
  width: 120px;
  height: auto;
  border-radius: 10px;
}

.research-link {
  font-weight:bold;
  font-style:italic;
  margin-right:10px;
}

jt {
  font-weight:bold;
  font-style:italic;
}

jtb {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  font-style: italic;
  padding: 0.5px 5px 1px 5px;
  background-color: #5F5F5F;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

ift {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  background-color: var(--primary);
  padding: 0.5px 5px 1px 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}


/* .footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
} */


/*  */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text);
  background: transparent;
  border-top: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

[data-theme="dark"] .footer {
  background: transparent;
  border-top: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/*  */

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
    align-items: stretch;
}

.grid4 > a {
  display: block;
  height: 100%;
  min-width: 0;
}

.grid4 > a > .card {
  height: 100%;
}

.grid4 h3 {
  color:var(--primary);
  margin-bottom:8px;
  align-items:center;
}

.grid4 p {
  color:var(--text);
}

.reveal { 
  opacity: 0; 
  transform: translateY(20px); 
  transition: .6s ease; 
}

.reveal.show { 
  opacity: 1; 
  transform: translateY(0); 
}

@media (max-width: 980px) {
  .topbar {
    padding: 14px 10px;
  }
  .profile-photo {
    max-width: 200px;
  }
  .split-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .scroll-col {
    height: auto;
    overflow: visible;
  }
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .theme-toggle { 
    display:none; 
  }
  .nav {
    top: 72px; 
    right: 18px; 
    padding: 16px; 
    display: none; 
    position: fixed;
    border-radius: 12px; 
    flex-direction: column; 
    align-items: flex-start;
    background: var(--primary); 
    gap: 12px;
  }
  .nav.open { 
    display: flex; 
  }
  .nav-link {
    font-size: 1.1rem;
    margin-right:2px;
  }
  .hamburger { 
    display:block; 
  }
}

@media (max-width: 640px) {
  .list-item, .pub-item {
    grid-template-columns: 1fr;
  }
  .hero img {
    height:100%;
  }
  .hero-text h1 {
    font-size: 1.1rem;
  }
  .hero-text p {
    font-size: 0.9rem;
  }
}