/* General page setup */
body {
  font-family: 'Inter', sans-serif;
  color: #222;
  line-height: 1.7;
  font-size: 16px;
}
h1, h2, h3 {
  font-weight: 700;
  color: #111;
}

/* Navbar */
/* Navigation Bar */
nav {
  text-align: center;       /* ✅ center the links */
  margin: 20px 0;           /* spacing around the nav */
  padding: 15px 0;          /* extra padding inside */
  background: #f5f5f5;      /* light background to make it stand out */
  border-radius: 8px;       /* rounded edges */
}

nav a {
  margin: 0 25px;           /* space between links */
  text-decoration: none;
  font-size: 1.2em;          /* ✅ larger font */
  font-weight: 600;
  color: #0066cc;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}

nav a:hover {
  color: #004080;
  border-bottom: 2px solid #004080;
}

/* Profile image */
/* Profile section layout */
.profile {
  display: flex;
  align-items: center;  /* vertically center photo + text */
  gap: 20px;            /* space between photo and text */
  margin-bottom: 30px;
}

.profile-pic {
  max-width: 200px;   /* photo size */ 
  border-radius: 10px;
}

.profile-text {
  flex: 1;            /* text takes remaining space */
}

/* Headings */
h1, h2 {
  color: #333;
}

/* Updates list */
.updates li {
  margin-bottom: 0.5em;
}

/* Footer */
footer {
  margin-top: 50px;
  font-size: 0.9em;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

@media (max-width: 700px) {
  .profile {
    flex-direction: column;
    text-align: center;
  }
  .profile-text {
    text-align: center;
  }
}

.about {
  display: flex;
  flex-direction: column;  /* ✅ stack vertically */
  align-items: center;     /* ✅ center everything */
  gap: 20px;
  margin: 40px 0;
}

.about-photo img {
  max-width: 450px;   /* ✅ keeps photo nicely sized */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.about-text {
  background: #f5f5f5;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 700px;
  width: 100%;
}

/* Headings in About section */
.about-text h2,
.about-text h3 {
  text-align: center;   /* ✅ center only headings */
  margin-top: 0;
}

/* Paragraphs in About section */
.about-text p {
  text-align: left;     /* ✅ left justify all paragraphs */
  margin-bottom: 1em;
}

/* Text card */
.about-text {
  flex: 1;                /* ✅ same width as photo */
  background: #f5f5f5;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center; /* ✅ vertically center text */
}
/* Social links inside About section */
.about-text .social-links {
  text-align: center;   /* ✅ center the links */
  margin-top: 20px;
}

.about-text .social-links a {
  margin: 0 10px;       /* spacing between links */
  text-decoration: none;
  font-weight: 600;
  color: #0066cc;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}

.about-text .social-links a:hover {
  color: #004080;
  border-bottom: 2px solid #004080;
}

a {
  color: #0066cc;              /* nice academic blue */
  text-decoration: none;       /* remove underline */
  font-weight: 600;            /* make a bit bolder */
  transition: color 0.2s ease, border-bottom 0.2s ease;
}

a:hover {
  color: #004080;              /* darker on hover */
  border-bottom: 2px solid #004080;  /* underline effect */
}
/* Page container to limit width */
.container {
  max-width: 1000px;   /* Adjust: 900–1100px is typical for academic pages */
  margin: 0 auto;      /* Center horizontally */
  padding: 0 20px;     /* Small padding for mobile edges */
}

/* Research Grid Layout */
.research-grid {
  display: flex;
  flex-direction: column;  /* ✅ stack vertically */
  gap: 30px;               /* space between cards */
  margin-top: 30px;
}

/* Research Card (full width) */
.research-card {
  background: #eeebeb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  max-width: 900px;   /* ✅ keeps it readable */
  margin: 0 auto;     /* center the card */
}

/* Card Images */
.research-card img {
  width: 100%;             /* take full card width */
  max-width: 800px;        /* prevent overly large images */
  height: 250px;           /* ✅ fixed height box */
  object-fit: contain;     /* ✅ scale image inside without cropping */
  background: #fff;        /* optional: fills gaps if aspect ratio differs */
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Headline */
.research-card h2 {
  font-size: 1.5em;
  margin: 10px 0;
  text-align: center; /* ✅ keep project titles centered */
}

.container h1 {
  text-align: center;
  margin-bottom: 20px;
}
