:root{
  --bg: #f4f7fb;
  --box-bg: white;
  --accent: #2563eb;        /* normal accent */
  --accent-2: #1e40af;      /* hover/focus accent */
  --text: #0f172a;
  --muted: #6b7280;
  --gap: 12px;
  --radius: 10px;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #fff;
  color: #222;
}

header {
  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

header ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

header ul li {
  margin-left: 20px;
}

header ul li a {
  text-decoration: none;
  color: #333;
}

main {
  display: flex;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.profile {
  width: 250px;
  text-align: center;
  margin-right: 40px;
}

.rightColumn {
    flex-direction: column;
}

.profile-pic {
  width: 200px;
  border-radius: 50%;
}

.subtitle {
  font-weight: bold;
  color: #555;
}

.contact p {
  margin: 5px 0;
}

.contact a {
  text-decoration: none;
  color: #0073e6;
}

.bio {
  flex: 1;
  margin-bottom: 40px;
}

.bio a {
  color: #0073e6;
  text-decoration: none;
}

.news {
  flex: 2;
}

.news h3 {
  margin-top: 0;
  font-size: 18px;
}

.news ul {
  padding-left: 20px;
}

.news li {
  margin-bottom: 10px;
}

.project{
  margin-top: 25px;
}

.project{
  margin-top: 50px;
}

.research-card-container {
  display: flex;
  gap: 20px; 
  flex-direction: column;
  /* flex-wrap: wrap; wrap on smaller screens */
}

.research-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 220px;
  padding: 5px;
  /* margin: 20px; */
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #c3dbfc;
  border-radius: 10px;
  /* font-weight: 600; */
  /* text-align: center; */
  transition: background-color 0.3s ease;
}

.research-card h3,
.research-card h4,
.research-card h5 {
  margin: 8px 0;      /* reduce default top/bottom margins */
  font-weight: 600;    /* optional: control boldness */
  line-height: 1.2;    /* tighter line spacing */
}

.research-card:hover,
.research-card:focus {
  background-color: #e0f0ff; /* light blue background on hover */
}


.link-row{
  display:flex;
  gap: var(--gap);
  align-items:stretch;
  flex-wrap: wrap; /* wraps to next line on narrow screens */
  max-width: 980px;
  width:100%;
}

.link-box{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;        /* control box size */
  height: 10px;
  padding: 14px 20px;
  background: var(--box-bg);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.04);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
  font-weight: 600;
  letter-spacing: .2px;
  text-align:center;
}

.link-box:hover,
.link-box:focus,
.link-box:focus-visible {
  border-color: #62b4ff;   /* only border changes */
  background: var(--box-bg);
  color: var(--text);
}

.card-container {
  display: flex;
  gap: 20px; /* space between cards */
  flex-wrap: wrap; /* wrap on smaller screens */
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  padding: 20px 30px;
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #c3dbfc;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
}

.project-card:hover,
.project-card:focus {
  background-color: #e0f0ff; /* light blue background on hover */
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  padding: 20px 30px;
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #c3dbfc;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
}

.card:hover,
.card:focus {
  background-color: #e0f0ff; /* light blue background on hover */
}

.card-row{
  display:flex;
  flex-direction: row;
  gap: var(--gap);
  /* align-items: center; */
  justify-content: center;
  flex-wrap: wrap; /* wraps to next line on narrow screens */
  max-width: 980px;
  width:100%;
  padding: 30px;
}

.card-box{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;        /* control box size */
  padding: 14px 20px;
  background: var(--box-bg);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.04);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
  font-weight: 600;
  letter-spacing: .2px;
  text-align:center;
}

.card-box:hover,
.card-box:focus,
.card-box:focus-visible {
  border-color: #62b4ff;   /* only border changes */
  background: var(--box-bg);
  color: var(--text);
}