/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

/* Navigation bar */
.navbar {
  background-color: #003f5c;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
}

.navbar .nav-links li {
  margin-left: 1rem;
}

.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  background-color: #2f527b;
}

/* Hamburger for small screens */
.nav-toggle {
  display: none;
  flex-direction: column;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger:before,
.nav-toggle .hamburger:after {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle .hamburger:before,
.nav-toggle .hamburger:after {
  content: '';
  position: relative;
}

.nav-toggle .hamburger:before {
  top: -8px;
}

.nav-toggle .hamburger:after {
  top: 8px;
}

/* Transform hamburger into an "X" when open */
.nav-toggle.open .hamburger {
  transform: rotate(45deg);
}

.nav-toggle.open .hamburger:before {
  transform: rotate(90deg);
  top: 0;
}

.nav-toggle.open .hamburger:after {
  opacity: 0;
}

/* Hero section shared styles */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
  background-color: #e8f1fc;
}

.hero-text {
  flex: 1 1 350px;
  padding-right: 2rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #003f5c;
}

.hero-text p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Statistics section on the home page */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background-color: #fff;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 8px;
  max-width: 1200px;
}

.stats .stat {
  text-align: center;
  flex: 1 1 150px;
  margin: 0.5rem;
}

.stats .stat h2 {
  font-size: 2rem;
  color: #003f5c;
}

.stats .stat p {
  font-size: 0.9rem;
  color: #555;
}

/* Call to action */
.call-to-action {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #fff;
  margin-bottom: 2rem;
}

.call-to-action h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #003f5c;
}

.call-to-action p {
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background-color: #003f5c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #2f527b;
}

/* General section styling */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h2.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #003f5c;
}

/* Timeline for education and experience */
.timeline {
  border-left: 3px solid #003f5c;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.timeline-entry {
  margin-bottom: 1.5rem;
}

.timeline-entry h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #003f5c;
}

.timeline-entry span {
  font-size: 0.9rem;
  color: #555;
}

.timeline-entry p {
  margin-top: 0.2rem;
}

/* Cards container for research grants and projects */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  flex: 1 1 280px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card h3 {
  color: #003f5c;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}

/* Publication list styling */
.pub-list {
  list-style: none;
  padding-left: 0;
}

.pub-list li {
  margin-bottom: 0.5rem;
  padding-left: 0; /* remove default indent */
}

/* Table styling for publications */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background-color: #003f5c;
  color: #fff;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info a {
  color: #003f5c;
  text-decoration: none;
}

/* Footer styling */
footer {
  background-color: #003f5c;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Responsive layout */
@media (max-width: 768px) {
  .navbar .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #003f5c;
    flex-direction: column;
    width: 200px;
    display: none;
  }

  .navbar .nav-links li {
    margin: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar .nav-links.active {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }
}

.contact-info {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-info p {
  margin: 8px 0;
}

.contact-info i {
  margin-right: 10px;
  color: #0077b5; /* pick your theme color */
}

.contact-info a {
  color: #0077b5; /* link color */
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 700px;      /* optional: limit width */
  margin: 16px auto;     /* center on page */
  padding-bottom: 56.25%;/* 16:9 aspect ratio; change to 60–70% for taller map */
  border-radius: 12px;   /* rounded corners */
  overflow: hidden;      /* clip iframe corners */
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
