
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Spectral:wght@600;700&display=swap');
:root{--black:#000;--white:#fff;--green:#109648;--blue:#0000C1;--grey:#ABB8C3;}
/* grey 8D99AE or pale slate ABB8C3 */
body{margin:0;font-family:Inter,sans-serif;background:var(--grey);}
header,footer{background:var(--black);}
nav{max-width:1300px;margin:auto;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;}
.brand{display:flex;gap:1rem;align-items:baseline;}
.brand a{color:var(--white);font-weight:700;text-decoration:none;}
.brand span{color:var(--green);font-size:.9rem;}
.menu a{color:var(--white);margin-left:1.5rem;text-decoration:none;}
.menu a.active,.menu a:hover{color:var(--green);}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.section-white{background:var(--white);}
.section-grey{background:var(--grey);}

.container{max-width:760px;margin:auto;padding:4rem 2rem;}
.container-wide{max-width:760px;margin:auto;padding:4rem 2rem;}

.section-grey p a,
.section-grey li a {
  color: var(--blue);
  text-decoration: none;
}

.section-white p a,
.section-white li a {
  color: var(--green);
  text-decoration: none;
}

.section-grey p a:hover,
.section-grey li a:hover,
.section-white p a:hover,
.section-white li a:hover {
  text-decoration: underline;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

main {
  padding-top: 50px;
}

h2.section-title{
  display:block;
  width:fit-content;
  margin:0 auto 2rem auto;
  font-family:Spectral,serif;
  color:#fff;
  padding:.35rem 1rem;
  text-align:center;
}
.section-grey h2{background:var(--blue);}
.section-white h2{background:var(--green);}

p{line-height:1.7;color:#000;text-align:justify;}

.lead{font-weight:700;padding:.1rem .4rem;color:#fff;background:var(--blue);}
.section-white .lead{background:var(--green);}

.about-grid{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:2rem;
  align-items:flex-start; /* image aligned to text block */
}
.about-text{display:flex;flex-direction:column;}
.about-grid img{
  width:160px;
  border-radius:6px;
  margin-top:20px
}

.about-links{
  margin-top:1.2rem;
  text-align:center;
}
.about-links a{
  display:block;
  font-weight:700;
  color:var(--green);
  text-decoration:none;
}

.links{
  margin:1.2rem 0;
  text-align:center;
}
.links a{
  display:block;
  margin:.4rem 0;
  text-decoration:none;
  font-weight:700;
}
.links.blue a{color:var(--blue);}
.links.green a{color:var(--green);}

.links.blue a,
.links.green a {
  text-decoration: none;
}

.links.blue a:hover,
.links.green a:hover {
  text-decoration: underline;
}

.continents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.continent h3 {
  margin-bottom: 0.6rem;
}

.continent ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.continent li {
  margin-bottom: 0.25rem;
}

.social{
  margin-top:1.5rem;
  display:flex;
  justify-content:center;
  gap:1rem;
}
.social img{
  width:26px;height:26px;
  filter: invert(41%) sepia(92%) saturate(403%) hue-rotate(93deg) brightness(92%) contrast(90%);
}

.publication-list {
  list-style-type: none;
  padding-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.publication-list li {
  margin-bottom: 1rem;
  text-align: left;  /* justified if needed */
}

.site-footer,
.site-footer p,
.site-footer a,
.site-footer span {
  color: #fff;
}


.site-footer {
  background: #000;
  color: #fff;
  padding: 2.2rem 2rem 1.5rem;
}

.site-footer .footer-affil {
  color: #109648; /* green */
}

.site-footer .footer-links a {
  color: #109648; /* green */
}

.site-footer .footer-bottom {
  color: #ABB8C3; /* grey */
}

.site-footer .footer-address {
  color: var(--green); /* #109648 */
}

.footer-top {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

.footer-col p {
  margin: 0.3rem 0;
  line-height: 1.5;
}

.footer-name {
  font-weight: 700;
}

.footer-affil {
  color: #109648;
  margin-bottom: 1rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.footer-logos {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 1.6rem;
  margin-left: -12px;
}

.footer-logos img {
  height: 36px;
  width: auto;
}

.footer-logos .logo-trinity {
  height: 60px;   /* optically larger, not overpowering */
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  align-items: center;
}

.footer-social img {
  width: 22px;
  height: 22px;
  filter: invert(1); /* makes icons white */
}

.footer-links a {
  display: block;
  color: #109648;
  font-weight: 600;
  text-decoration: none;
  margin: 0.3rem 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #ABB8C3;
}


/* =========================
   Mobile adjustments
   ========================= */

@media (max-width: 768px) {

  /* --- General spacing --- */
  .container,
  .container-wide {
    padding: 2rem 1.2rem;
  }

  main {
    padding-top: 0px;
  }

  /* --- Header / navigation --- */
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

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

  .menu a {
    margin-left: 0;
  }

  header {
    overflow-x: hidden;
    position: sticky;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .menu {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .menu a {
    white-space: normal;
  }

  /* --- About-me block (image + text) --- */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid img {
    width: 140px;
    margin: 0 auto 1rem;
  }

  /* --- Section titles --- */
  h2.section-title {
    font-size: 1.4rem;
  }

  /* --- Country / continent grid --- */
  .continents-grid {
    grid-template-columns: 1fr;
  }

  /* --- Footer --- */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-logos {
    margin-left: 0;
  }
}