/* -----------------------------------
   General styles
----------------------------------- */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

p a {
  color: #0b3d91;        /* deep blue for visibility */
  text-decoration: underline; /* classic link style */
  font-weight: 500;       /* slightly bolder for emphasis */
}

p a:hover {
  color: #1954a6;         /* slightly darker on hover */
  text-decoration: none;   /* removes underline on hover if you want a modern look */
}
.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

/* -----------------------------------
   Header / Banner
----------------------------------- */
header {
  background: url('../images/banner.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
  max-height: 200px;
  font-family: 'IBM Plex Serif', serif;
}

header h1 {
  font-size: 50px;
  margin: 0;
  text-shadow:
    -1px -1px 0 #88807B,
     1px -1px 0 #88807B,
    -1px  1px 0 #88807B,
     1px  1px 0 #88807B; /* outlined text */
}

header h2 {
  font-size: 36px;
  margin: 10px 0 0;
  text-shadow:
    -1px -1px 0 #88807B,
     1px -1px 0 #88807B,
    -1px  1px 0 #88807B,
     1px  1px 0 #88807B;
}

/* -----------------------------------
   Navigation
----------------------------------- */
/* -----------------------------------
   Navigation
----------------------------------- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1954a6;
    color: white;
    padding: 1px 20px;
    font-size: 20px;
    line-height: 1;
}

.nav-left a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
}

.nav-left a:hover {
    text-decoration: underline;
}

.nav-right img {
    height: 75px; /* adjust as needed */
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}
.nav-right {
    margin-right: -20px; /* fine-tune this value as needed */
}

/* -----------------------------------
   Forms
----------------------------------- */

 /* Center the form container */
  #contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;   /* Centers the form horizontally */
    gap: 15px;
    padding: 20px;
  }

  /* Stack each label + input neatly */
  .form-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

  /* Inputs, selects, and button styling */
  .form-field input,
  .form-field select,
  .form-field button {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Button styling */
  .form-field button {
    background-color: #1954a6;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
  }

  .form-field button:hover {
    background-color: #16498f;
  }
/* -----------------------------------
   Team / People page
----------------------------------- */
.team-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;   /* center the row */
    align-items: flex-start;
}

.team-member {
    max-width: 400px;
    text-align: center;
}

.team-member img {
    width: 318px;
    height: 400px;
    border-radius: 5px;
}

/* Full team image */
.full-team {
    width: 80%;               /* large but constrained */
    max-width: 800px;        /* prevent huge size */
    height: 700px;
    display: block;
    margin: 30px auto;
    border-radius: 5px;
}

/* -----------------------------------
   Science page (publications)
----------------------------------- */
/* grid container */
.pub-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(475px, 1fr));
  gap: 30px;
  justify-content: center;
  margin: 40px auto;
  max-width: 1000px;
  box-sizing: border-box;
}

/* the outer box that defines the border and padding */
.pub-item {
  border: 1px solid #000;        /* visible box border */
  border-radius: 10px;
  padding: 14px;
  min-height: 350px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* hover effect on the box (not only the link) */
.pub-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

/* make the whole content clickable and laid out horizontally */
.pub-item > a.pub-link {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* image (left) */
.pub-item img {
  width: 200px;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

/* text column (right) */
.pub-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* title and meta */
.pub-text strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 8px;
  line-height: 1.25;
}

.pub-text p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

/* -----------------------------------
   FAQ page
----------------------------------- */
.faq-link {
    margin-right: 10px;
}

.faq-question {
    margin-top: 40px;
}

/* -----------------------------------
   Responsive adjustments
----------------------------------- */
@media (max-width: 600px) {
    header {
        padding: 60px 20px;
    }

    header h1 {
        font-size: 36px;
    }

    header h2 {
        font-size: 18px;
    }

    /* --- NAVIGATION --- */
    nav {
        font-size: 16px;           /* make nav text larger */
        padding: 1px 12px;
	line-height: 1;	/* slightly more breathing room */
    }

    .nav-left a {
	margin-right: 12px;
    }

    .nav-right {
	    margin-right: -12px;
    }

.nav-right img {
    height: 28px;              /* smaller logo for mobile */
    max-width: 100%;           /* ensure it doesn’t overflow */
    display: block;
    margin-right: 0;
    padding: 0;
}
    /* --- FORM FIELDS --- */
    .form-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 18px;
    }

    label {
        font-size: 22px;           /* larger label text */
        margin-bottom: 6px;
    }

    input,
    select,
    textarea,
    button {
        font-size: 20px;           /* larger text for touch typing */
        padding: 12px;             /* increase hit area */
        border-radius: 6px;
        width: 100%;               /* full width for mobile comfort */
        box-sizing: border-box;
    }

    textarea {
        height: 140px;             /* a bit taller for mobile typing */
    }

    /* --- PANELS --- */
    .team-panel {
        flex-direction: column;
        align-items: center;
    }

/* --- MOBILE PUBLICATIONS --- */
.pub-panel {
    display: block;            /* switch from grid to stacked layout */
    margin: 20px auto;         /* reduce vertical spacing */
    max-width: 100%;           /* don’t exceed screen width */
    padding: 0 10px;           /* optional side padding */
}

.pub-item {
    max-width: 100%;           /* full width of screen */
    padding: 12px;             /* slightly smaller padding for mobile */
    min-height: auto;          /* allow height to adjust to content */
    margin-bottom: 20px;       /* space between stacked items */
    box-sizing: border-box;
}

.pub-item > a.pub-link {
    flex-direction: column;    /* stack image and text vertically */
    gap: 12px;                 /* smaller gap between image and text */
    align-items: flex-start;
}

.pub-item img {
    width: 100%;               /* image spans full width of box */
    max-width: 300px;          /* optional cap for very large screens */
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.pub-text {
    flex: none;                /* allow text to expand naturally */
}

.pub-text strong {
    font-size: 1.2rem;         /* slightly smaller for mobile */
    margin-bottom: 6px;
    line-height: 1.25;
}

    .full-team {
        width: 80%;
	height: 80%;
    }
}

