
:root {
  --navy: #09223f;
  --blue: #125a9c;
  --sky: #eaf3fb;
  --gold: #c99735;
  --gold-dark: #a77a20;
  --text: #1f2933;
  --muted: #64748b;
  --border: #d8e2ec;
  --soft: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 16px 35px rgba(9, 34, 63, 0.12);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

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

a:hover {
  color: var(--gold-dark);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.top-strip {
  background: var(--navy);
  color: #dbeafe;
  font-size: 0.84rem;
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.06rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--navy);
}

/* Hero */
/* .hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(125deg, var(--navy), #0f4d78 55%, var(--blue));
  color: var(--white);
}
*/

.hero {
  background:
    linear-gradient(
      125deg,
      rgba(9, 34, 63, 0.94),
      rgba(15, 77, 120, 0.84) 55%,
      rgba(18, 90, 156, 0.82)
    ),
    url("../img/background-image.png") center / cover no-repeat;
  color: var(--white);
}

.hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  max-width: 760px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.23rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
}

.hero-card img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 14px;
}

.hero-card h2 {
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.88);
}

/* Page hero */
.page-hero {
  padding: 90px 0;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 34, 63, 0.94), rgba(18, 90, 156, 0.84)),
    url("../img/background-image.png");
  background-size: cover;
  background-position: center;
}

.page-hero p:last-child {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

/* Sections */
.section {
  padding: 86px 0;
}

.section-soft {
  background: var(--soft);
}

h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h3 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 10px;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.theme-card,
.detail-card,
.profile-card,
.project-card,
.opening-card,
.notice-card,
.contact-form,
.link-card,
.news-list article,
.resource-list article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme-card,
.detail-card,
.profile-card,
.project-card,
.opening-card,
.notice-card,
.contact-form,
.news-list article,
.resource-list article {
  padding: 28px;
}

.theme-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(9, 34, 63, 0.16);
}

.theme-number {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--sky);
  border-radius: 14px;
  font-weight: 900;
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.tick-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-dark);
  font-weight: 900;
}

.text-link {
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--gold);
}

.button.primary:hover {
  color: var(--white);
  background: var(--gold-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.button.secondary:hover {
  color: var(--navy);
  background: var(--white);
}

.button.small {
  margin-top: 24px;
}

/* Home people */
.mini-people {
  display: grid;
  gap: 18px;
}

.mini-person {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.mini-person img {
  width: 76px;
  height: 76px;
}

.mini-person p {
  margin: 0;
  color: var(--muted);
}

/* Research page */
.research-feature {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  align-items: center;
}

.research-feature img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud span {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--sky);
  font-weight: 700;
}

/* People */
.profile-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 18px;
  border-radius: 14px;
}

.profile-card.wide {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}

.profile-card.wide img {
  width: 220px;
  height: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 0;
  border-radius: 14px;
}

.role {
  color: var(--blue);
  font-weight: 800;
}

/* Publications */
.publication-list {
  display: grid;
  gap: 18px;
}

.publication {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pub-year {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 12px;
  font-weight: 900;
}

.pub-links a {
  margin-right: 18px;
  font-weight: 800;
}

.link-card {
  padding: 26px;
  display: grid;
  gap: 12px;
}

.link-card.horizontal {
  display: flex;
  flex-wrap: wrap;
  margin-top: 22px;
}

.link-card a {
  font-weight: 800;
}

/* Projects */
.project-status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--sky);
  font-size: 0.82rem;
  font-weight: 900;
}

.resource-list {
  display: grid;
  gap: 18px;
}

.resource-list article a {
  font-weight: 800;
}

/* News */
.news-list {
  display: grid;
  gap: 18px;
}

.news-list.compact {
  grid-template-columns: repeat(3, 1fr);
}

.news-list span,
.timeline-date {
  color: var(--gold-dark);
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  gap: 26px;
}

.timeline article {
  position: relative;
  padding: 28px 28px 28px 34px;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

/* Contact */
.contact-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(18, 90, 156, 0.16);
  border-color: var(--blue);
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.map-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--navy);
  background: var(--sky);
}

/* Footer */
.site-footer {
  color: #dbeafe;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr;
  gap: 30px;
  padding-top: 46px;
  padding-bottom: 40px;
}

.site-footer h3 {
  color: var(--white);
}

.site-footer a {
  color: #dbeafe;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #bfdbfe;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
  font-size: 1.3rem;
  cursor: pointer;
}

.back-to-top.show {
  display: block;
}

/* Responsive */
@media (max-width: 1060px) {
  .hero-grid,
  .two-column,
  .research-feature {
    grid-template-columns: 1fr;
  }

  .card-grid.four,
  .card-grid.three,
  .news-list.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .top-strip-inner {
    flex-direction: column;
    gap: 4px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 114px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .brand-text small {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section {
    padding: 62px 0;
  }

  .card-grid.four,
  .card-grid.three,
  .card-grid.two,
  .news-list.compact {
    grid-template-columns: 1fr;
  }

  .profile-card.wide,
  .publication {
    grid-template-columns: 1fr;
  }

  .profile-card.wide img {
    width: 120px;
    height: 120px;
  }
}

/* Keep homepage People preview in two columns */
@media (min-width: 821px) {
  .two-column.home-people-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

/* Crop real member photos correctly on the homepage */
.home-people-layout .mini-person img {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
}
