:root {
  --brand: #1f45ad;
  --brand-dark: #16328a;
  --text: #1a2540;
  --muted: #66718d;
  --line: rgba(26, 56, 138, 0.1);
  --surface: rgba(255, 255, 255, 0.94);
  --shadow: 0 20px 48px rgba(20, 38, 91, 0.08);
  --hero-shadow: 0 18px 36px rgba(23, 50, 120, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(31, 69, 173, 0.08), transparent 18%),
    radial-gradient(circle at 100% 42%, rgba(31, 69, 173, 0.06), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-wrap {
  position: relative;
  overflow-x: clip;
}

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(23, 50, 120, 0.1);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 88px;
  padding: 0;
}

.brand-logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  width: 82px;
  height: auto;
}

.navbar-nav .nav-link {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0.85rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand);
}

.dropdown-toggle::after {
  margin-left: 0.45rem;
  vertical-align: middle;
  border-top-width: 0.32em;
  border-right-width: 0.26em;
  border-left-width: 0.26em;
}

.nav-icon {
  font-size: 0.96rem;
}

.hero-section {
  padding: 1.8rem 0 2.35rem;
}

.hero-shell {
  position: relative;
  min-height: 400px;
  align-items: stretch;
  overflow: visible;
  margin-top: 50px;
  background-color: red;
  background: url("src/images/hero/header.png") no-repeat;
  background-size: 60%;
  background-position: right center;

}

.hero-copy-panel {
  position: relative;
  display: flex;
  align-items: center;
}


.hero-copy {
  position: relative;
  width: 100%;
  padding: 10px 20px;
  z-index: 3;
  background-color: #f9fafd;
}


.hero-copy h1 {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: clamp(1.72rem, 2.5vw, 3rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 1.35rem;
  color: #4f5b77;
  font-size: 1rem;
  line-height: 1.62;
}

.hero-panel-bg,
.hero-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-panel-bg {
  z-index: 1;
}

.hero-panel-bg polygon {
  fill: rgba(255, 255, 255, 0.98);
}

.hero-outline {
  z-index: 3;
}

.hero-outline path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.circle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.68rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
}

.circle-btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(31, 69, 173, 0.18);
}

.circle-btn-secondary {
  color: var(--brand);
  background: #fff;
  border-color: rgba(31, 69, 173, 0.16);
  box-shadow: 0 12px 24px rgba(31, 69, 173, 0.08);
}

.hero-image-wrap {
  position: relative;
  min-height: 300px;
  z-index: 0;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -43%;
  width: 400px;
  height: 400px;
  z-index: 1;
  transform: rotate(76deg);
  background-color: #f9fafd;
  border: 2px solid #1f45ad;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: 79% 61%;
  box-shadow: var(--hero-shadow);
}

.tmu-badge {
  position: absolute;
  right: -0.15rem;
  bottom: 1.1rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.04rem;
  padding: 0.72rem 0.88rem;
  background: #0054a5;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.02;
  box-shadow: 10px 0 0 #f0c40c;
}

.content-section {
  position: relative;
  padding: 1.7rem 0 2.3rem;
}

.content-section::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: 2rem;
  width: 30rem;
  height: 19rem;
  background: radial-gradient(circle, rgba(31, 69, 173, 0.16) 1px, transparent 1.3px);
  background-size: 11px 11px;
  opacity: 0.34;
  mask-image: radial-gradient(circle at center, #000 26%, transparent 72%);
  pointer-events: none;
}

.section-title {
  margin: 0 0 1.7rem;
  color: var(--brand);
  font-size: clamp(1.8rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.research-card,
.member-card,
.publication-panel,
.news-card,
.collab-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.research-card {
  height: 100%;
  padding: 1.55rem 1.25rem 1.45rem;
}

.research-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 20px;
  color: var(--brand);
  font-size: 2.8rem;
}

.research-card h3,
.member-copy h3,
.publication-item h3,
.news-body h3 {
  margin: 0 0 0.5rem;
  color: var(--brand-dark);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.42;
}

.research-card p,
.member-copy p,
.publication-item p,
.news-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 112px;
  padding: 0.95rem 1rem;
}

.member-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(18, 35, 85, 0.16);
}

.image-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2148af, #0f275f);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.member-copy h3 {
  margin-bottom: 0.2rem;
  color: var(--text) !important;
  font-size: 1rem;
}

.member-copy {
  flex: 1 1 auto;
}

.member-role {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.member-link,
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
}

.member-link {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-panel {
  overflow: hidden;
}

.publication-item {
  padding: 1.45rem 1.5rem;
}

.publication-item+.publication-item {
  border-top: 1px solid var(--line);
}

.publication-item span,
.news-date {
  display: inline-block;
  color: #7b86a3;
  font-size: 0.92rem;
}

.news-card {
  overflow: hidden;
}

.news-media {
  min-height: 154px;
  background-position: center;
  background-size: cover;
}

.news-media-one {
  background-image:
    linear-gradient(rgba(11, 24, 73, 0.08), rgba(11, 24, 73, 0.08)),
    url("src/images/external/photo-1552664730-d307ca884978-auto-format-fit-crop-w-800-q-80.jpg");
}

.news-media-two {
  background-image:
    linear-gradient(rgba(11, 24, 73, 0.08), rgba(11, 24, 73, 0.08)),
    url("src/images/external/photo-1516321318423-f06f85e504b3-auto-format-fit-crop-w-800-q-80.jpg");
}

.news-body {
  padding: 1rem 1rem 1.15rem;
}

.news-date {
  margin-bottom: 0.45rem;
}

.news-body p {
  margin-bottom: 0.95rem;
  font-size: 0.9rem;
}

.news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(31, 69, 173, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
}

.collab-card {
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.2rem;
}

.collab-logo {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.tmu-logo {
  position: relative;
  max-width: 170px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 0.02rem;
  padding: 0.72rem 0.95rem;
  background: #0054a5;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.03;
}

.tmu-logo::after {
  content: "";
  position: absolute;
  top: 0;
  right: -28px;
  width: 28px;
  height: 100%;
  background: #f0c40c;
}

.tsl-logo .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: conic-gradient(from 215deg, #c45446 0 36%, #ececec 36% 50%, #54a9ba 50% 100%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.tsl-logo .logo-text {
  color: #8b8c92;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.encore-logo .logo-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.encore-logo .logo-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, #214b91 2px, transparent 2.6px),
    radial-gradient(circle at 20% 50%, #214b91 2px, transparent 2.6px),
    radial-gradient(circle at 80% 50%, #214b91 2px, transparent 2.6px),
    radial-gradient(circle at 50% 20%, #214b91 2px, transparent 2.6px),
    radial-gradient(circle at 50% 80%, #214b91 2px, transparent 2.6px),
    radial-gradient(circle at 28% 28%, #214b91 2px, transparent 2.6px),
    radial-gradient(circle at 72% 28%, #214b91 2px, transparent 2.6px),
    radial-gradient(circle at 28% 72%, #214b91 2px, transparent 2.6px),
    radial-gradient(circle at 72% 72%, #214b91 2px, transparent 2.6px);
}

.encore-logo .logo-text {
  color: #24488b;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.vector-logo {
  gap: 0.65rem;
}

.vector-logo .logo-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: #32478d;
  clip-path: polygon(50% 0, 100% 50%, 50% 33%, 0 50%);
}

.vector-logo .logo-text {
  color: #32478d;
  font-family: Georgia, serif;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.site-footer {
  position: relative;
  margin-top: 3.8rem;
  padding: 2.8rem 0 1rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(rgba(10, 23, 66, 0.84), rgba(10, 23, 66, 0.9)),
    url("src/images/hero/header.png") center/cover no-repeat;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12) inset, 0 24px 60px rgba(9, 18, 52, 0.32);
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.site-footer::before {
  bottom: -18px;
  height: 170px;
  background:
    radial-gradient(120% 140% at 0% 100%, rgba(86, 132, 255, 0.35) 0, transparent 36%),
    radial-gradient(90% 110% at 100% 100%, rgba(245, 204, 95, 0.36) 0, transparent 22%);
}

.site-footer::after {
  bottom: 0;
  height: 110px;
  background:
    radial-gradient(circle at 12% 110%, rgba(255, 255, 255, 0.18) 0, transparent 30%),
    radial-gradient(circle at 88% 102%, rgba(252, 205, 98, 0.32) 0, transparent 18%);
}

.footer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1.45fr 0.95fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 1.8rem;
}

.footer-logo {
  width: 170px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 1.75rem;
}

.footer-nav-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-bottom: 1rem;
}

.footer-nav-top a,
.footer-contact-col h3 {
  color: #fff;
  font-weight: 600;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-links a,
.footer-contact-col p {
  color: rgba(255, 255, 255, 0.84);
}

.footer-contact-col h3 {
  margin: 0 0 1rem;
  font-size: 1.08rem;
}

.footer-contact-col p {
  margin: 0 0 0.28rem;
  line-height: 1.65;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.95rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.05rem;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

@media (max-width: 1199.98px) {
  .content-section::after {
    width: 24rem;
    right: -8.5rem;
  }

  .hero-copy-panel {
    margin-right: -1.6rem;
  }

  .hero-copy {
    max-width: 27rem;
    padding-right: 1.25rem;
  }

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

  .footer-contact-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .hero-copy-panel {
    margin-right: -1rem;
  }

  .hero-copy {
    max-width: 24rem;
    padding: 1.2rem 1.1rem 1.2rem 0.35rem;
  }

  .hero-copy h1 {
    font-size: 1.72rem;
  }

  .content-section {
    padding: 1.4rem 0 2rem;
  }

  .section-title {
    margin-bottom: 1.35rem;
  }

  .footer-divider {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 767.98px) {
  .site-logo {
    width: 72px;
  }

  .navbar {
    min-height: auto;
    padding: 0.95rem 0;
  }

  .navbar-collapse {
    padding-top: 0.85rem;
  }

  .hero-section {
    padding-top: 1.3rem;
  }

  .hero-shell {
    min-height: auto;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .hero-copy-panel {
    margin-right: 0;
    display: block;
  }

  .hero-copy {
    padding: 0.4rem 0.2rem 1.15rem;
    background: transparent;
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 7.2vw, 2.45rem);
    line-height: 1.16;
  }

  .hero-panel-bg,
  .hero-outline {
    display: none;
  }

  .hero-actions .circle-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-image-wrap {
    min-height: auto;
  }

  .hero-image {
    min-height: 240px;
    border-radius: 18px;
    object-position: 72% center;
  }

  .tmu-badge {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.04rem;
    padding: 0.62rem 0.74rem;
    background: #0054a5;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.02;
    box-shadow: 10px 0 0 #f0c40c;
  }

  .content-section::after {
    display: none;
  }

  .research-card,
  .member-card,
  .publication-item,
  .news-body,
  .collab-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .member-card {
    min-height: 98px;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .member-photo {
    width: 54px;
    height: 54px;
  }

  .news-media {
    min-height: 180px;
  }

  .vector-logo .logo-text {
    font-size: 2rem;
  }

  .site-footer {
    margin-top: 3rem;
  }

  .footer-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
