:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --shadow: 0 12px 30px rgba(2, 6, 23, 0.08);

  --tileH: 180px;
  --radius: 18px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Partner university logos ---------- */
body::before{
  content: "";
  display: block;
  width: 100%;
  height: 78px;
  background-color: #fff;
  background-image:
    url("https://upload.wikimedia.org/wikipedia/commons/d/d7/Northumbria_University_Logo.png"),
    url("https://portal.macae.ufrj.br/wp-content/uploads/2023/02/ufrj-horizontal-cor-rgb-telas.png"),
    url("https://brandlogos.net/wp-content/uploads/2026/03/university-of-bristol-logo-1024x297.png");
  background-repeat: no-repeat;
  background-position:
    calc(50% - 315px) center,
    50% center,
    calc(50% + 315px) center;
  background-size:
    235px auto,
    155px auto,
    215px auto;
  border-bottom: 1px solid var(--line);
}

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

.container{
  max-width: 1280px; /* wider page */
  margin: 0 auto;
  padding: 18px 16px;
}

/* ---------- Nav ---------- */
.nav{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  font-weight: 800;
  letter-spacing: .2px;
}

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

.menu a{
  color: var(--muted);
  font-weight: 650;
}

.menu a:hover{
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero{
  padding: 26px 0 10px;
}

.hero h1{
  margin: 6px 0 10px;
  font-size: 36px;
  letter-spacing: -0.3px;
}

.sub{
  margin: 0;
  color: var(--muted);
}

/* ---------- Panel ---------- */
.panel{
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.panel-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-head h2{
  margin: 0;
  font-size: 18px;
}

.muted{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Tiles (coloured blocks) ---------- */
.tile-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 6px;
}

.tile{
  height: var(--tileH);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
  transform: translateY(0);
  transition: transform 120ms ease;
}

.tile:hover{
  transform: translateY(-2px);
}

/* coloured background (no images yet, but you can add later) */
.tile-project{
  background: linear-gradient(120deg, rgba(37,99,235,0.85), rgba(15,23,42,0.10));
}
.tile-team{
  background: linear-gradient(120deg, rgba(16,185,129,0.78), rgba(15,23,42,0.10));
}
.tile-facilities{
  background: linear-gradient(120deg, rgba(245,158,11,0.82), rgba(15,23,42,0.10));
}
.tile-updates{
  background: linear-gradient(120deg, rgba(168,85,247,0.78), rgba(15,23,42,0.10));
}

.tile-inner{
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(180deg, rgba(2,6,23,0.00) 38%, rgba(2,6,23,0.62) 100%);
}

.tile-title{
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 6px;
}

.tile-desc{
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.95;
}

.tile-cta{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Info cards ---------- */
.info-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.info-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.info-card h3{
  margin: 0 0 6px;
  font-size: 14px;
}

.info-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Footer ---------- */
.footer{
  border-top: 1px solid var(--line);
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px){
  .tile-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  body::before{
    height: 66px;
    background-position:
      calc(50% - 145px) center,
      50% center,
      calc(50% + 145px) center;
    background-size:
      135px auto,
      92px auto,
      125px auto;
  }
}

@media (max-width: 650px){
  .tile-grid{ grid-template-columns: 1fr; }
  .tile{ height: 190px; }
}

@media (max-width: 440px){
  body::before{
    height: 58px;
    background-position:
      calc(50% - 105px) center,
      50% center,
      calc(50% + 105px) center;
    background-size:
      102px auto,
      66px auto,
      94px auto;
  }
}

/* ---------- Contact page helpers ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 6px;
}

.contact-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.contact-card h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.contact-line{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}

.label{
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.value{
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.notice{
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-line{ grid-template-columns: 72px 1fr; }
}


/* Contact role line (bold, consistent) */
.contact-role{
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--text);
  font-size: 14px;
}

.contact-line .value{ font-weight: 800; }
