/* ===== Global Body and Container ===== */
body {
  font-family: 'Mulish', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fdfdfd;
  color: #333;
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ===== Navigation ===== */
nav.navbar {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

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

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
}

.nav-menu li a:hover {
  color: #0077cc;
}

/* ===== Headings ===== */
h1, h2, h3 {
  color: #222;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ===== Lists ===== */
ul {
  padding-left: 1.2rem;
}

ul li {
  margin-bottom: 0.5rem;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
  vertical-align: middle;
}

/* ===== Profile Pic ===== */
.profile-pic {
  text-align: center;
  margin: 2rem 0;
}
.profile-pic img {
  border-radius: 50%;
  max-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== Interest Tags ===== */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.interest-tags span {
  background: #e0f7fa;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #007b8a;
}

.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tools-tags span {
  background: #e0fae6;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #338a00;
}


/* ===== Flex Path Section ===== */
.flex-path {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.flex-path .map-img img {
  max-height: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== Scrolling Cards ===== */
.scrolling-cards {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.project-card {
  flex: 0 0 280px;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  scroll-snap-align: start;
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card .sub {
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.project-card .desc {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.project-card {
  cursor: pointer;
}
.project-card a {
  cursor: pointer;
}

/* ===== Contact + Map Flexbox ===== */
.contact-map-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-section {
  flex: 1 1 50%;
  max-width: 600px;
}

.contact-section ul {
  list-style: none;
  padding: 0;
}

.contact-section ul li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-section ul li i {
  font-size: 1.25rem;
  color: #555;
}

.map-img {
  flex: 1 1 40%;
  max-width: 300px;
  text-align: right;
}

.map-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== Background image at page bottom ===== */
.page-bottom-bg {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;      /* match container max-width */
  max-width: 100vw;
  height: auto;
  max-height: 80vh;
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

/* ===== Content Sections (Teaching, Outreach, etc) ===== */
.content-section {
  background: linear-gradient(135deg, #e9f0f7 0%, #fefefe 100%);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  padding: 2rem 1.5rem 2.5rem;
  margin-bottom: 3rem;
}

.content-section header {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.content-section header hr {
  width: 50px;
  height: 4px;
  background-color: #4a90e2;
  border: none;
  border-radius: 4px;
  margin: 0;
}

/* ===== Icons spacing (Bootstrap Icons helper) ===== */
.me-2 {
  margin-right: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .content-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


.btn-back {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
  }
  .btn-back:hover {
    background-color: #003d80;
  }


  html {
    scroll-behavior: smooth;
  }


.image-right {
    float: right;
    margin-left: 20px;
    width: 300px; /* Adjust width as needed */
  }