body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #F8F5F1;
  color: #102830;
}

/* --- Header & Nav --- */
header {
  background-color: #F8F5F1;
  color: #0e3a4a;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0e3a4a;
  flex-wrap: wrap;
}

header img {
  height: 90px;
  flex-shrink: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

nav a {
  color: #0e3a4a;
  text-decoration: none;
  margin: 0.5rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding-bottom: 3px;
  font-size: 1.05rem;
}

nav a:hover,
nav a.active {
  color: #2d6975;
  border-bottom: 3px solid #2d6975;
}

/* --- Hero section --- */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #F8F5F1 0%, #E9F0F1 100%);
  margin-bottom: 0;
}

.hero img {
  width: 180px;
  margin-bottom: 2rem;
  max-width: 80%;
}

.hero h1 {
  font-size: 2.6rem;
  color: #0e3a4a;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 850px;
  margin: 0 auto;
  color: #173a42;
}

/* --- Generic content sections --- */
.section {
  padding: 4rem 3rem;
  max-width: 1100px;
  margin: auto;
  line-height: 1.7;
  color: #123b3f;
}

.section h2 {
  color: #0e3a4a;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section p {
  font-size: 1.1rem;
}

/* --- Footer --- */
footer {
  background-color: #0e3a4a;
  color: #F8F5F1;
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
  margin-top: 0rem;
}

/* --- Page-specific accent (Events) --- */
body.events-page .hero {
  background: linear-gradient(180deg, #E9F0F1 0%, #D3E3EB 100%);
}
body.events-page h2 {
  color: #164b66;
}
body.events-page footer {
  background-color: #164b66;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  header img {
    height: 70px;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 600px) {
  nav a {
    margin: 0.4rem 0.8rem;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }
}


.footer-wrapper {
  background-color: #0e3a4a;
  color: #F8F5F1;
  text-align: center;
  padding-top: 2rem;
  margin-top: 0rem;
}

/* --- EU funding block --- */
.eu-funding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}

.eu-funding .eu-flag {
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
}

.eu-funding p {
  max-width: 800px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e8ecef;
  margin: 0;
}

/* --- Main footer text --- */
footer {
  background: transparent;
  color: #F8F5F1;
  font-size: 0.9rem;
  padding: 1rem;
  margin-top: 0;
}


/* ------------------------------ */
/* --- START Supervisors Page --- */
/* ------------------------------ */

.supervisors .intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  color: #102830;
}

/* --- Node (institution) section --- */
.node {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #d2d6d7;
}

.node-title {
  text-align: center;
  font-size: 1.6rem;
  color: #0e3a4a;
  border-left: 6px solid #2d6975;
  display: inline-block;
  padding-left: 0.8rem;
  margin: 3rem 0 2rem;
}

/* --- Individual supervisors --- */
.supervisor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid #ccc;
}

.supervisor:first-of-type {
  border-top: none;
  padding-top: 0;
}

.supervisor-photo {
  flex: 1;
  text-align: center;
}

.supervisor-photo figcaption {
  font-size: 0.8rem;
  color: #677;
  margin-top: 0.3rem;
}

.supervisor-photo img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.supervisor-photo img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.supervisor-text {
  flex: 2;
  color: #123b3f;
}

.supervisor-text h4 {
  margin-top: 0;
  color: #0e3a4a;
  font-size: 1.25rem;
}

/* Alternate layout */
.supervisor.reverse {
  flex-direction: row-reverse;
}

/* --- Responsive layout --- */
@media (max-width: 800px) {
  .supervisor,
  .supervisor.reverse {
    flex-direction: column;
    text-align: center;
  }

  .supervisor-photo {
    margin-bottom: 1rem;
  }

  .node-title {
    display: block;
    border-left: none;
    border-bottom: 3px solid #2d6975;
    padding-bottom: 0.4rem;
  }
}

/* ---------------------------- */
/* --- END Supervisors Page --- */
/* ---------------------------- */


/* ------------------------------- */
/* --- START Applications Page --- */
/* ------------------------------- */

.applications .intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  color: #102830;
}

.app-subsection {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #c7cfd1;
}

.app-subsection:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.app-subsection h3 {
  color: #0e3a4a;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-left: 5px solid #2d6975;
  padding-left: 0.8rem;
}

.app-subsection ul {
  margin-left: 1.5rem;
  line-height: 1.6;
  color: #123b3f;
}

.app-subsection a {
  color: #2d6975;
  text-decoration: none;
}

.app-subsection a:hover {
  text-decoration: underline;
}

/* ----------------------------- */
/* --- END Applications Page --- */
/* ----------------------------- */

