/* ===============================
   Global Style Sheet: style.css
   Based on research.html design
   =============================== */

/* --- Base settings --- */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #eef3fa; /* Soft blue-grey background */
  color: #222;
  line-height: 1.6;
}

/* --- Header and menu bar --- */
header {
  background-color: #003399; /* Deep blue */
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8rem;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

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

/* --- Cards --- */
.card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.card h2 {
  margin-top: 0;
  color: #002b45; /* Deep navy for headings */
}

.card a {
  color: #003f63; /* Medium blue for inline links */
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* --- Link-style cards (bottom of research page, etc.) --- */
.link-section {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.link-card {
  flex: 1;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1.2rem;
  text-align: center;
  min-width: 200px;
}

.link-card a {
  color: #002b45;
  text-decoration: none;
  font-weight: 500;
}

.link-card a:hover {
  text-decoration: underline;
}

/* --- Sidebar topics (gallery) --- */
.topics-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-item {
  display: block;
  background-color: #e9eff4;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  font-weight: 500;
  color: #002b45;
  text-decoration: none;
  transition: background-color 0.3s;
}

.gallery-item:hover {
  background-color: #d8e4ed;
}

/* --- Responsive adjustments --- */
@media (max-width: 800px) {
  .link-section {
    flex-direction: column;
  }
  .topics-sidebar {
    flex-direction: row;
    justify-content: space-around;
  }
  
  /* Publication list indentation and alignment */
.publications-list {
  list-style-position: outside;
  padding-left: 2.5em;
}

.publications-list li {
  padding-left: 2em;
  text-indent: -2em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}
}

