/* === Base Layout === */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

/* === Navigation === */
nav {
  background: #fff;
  padding: 8px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 8px 12px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #0077cc;
}

nav ul li a.active {
  border-bottom: 2px solid #0077cc;
}

/* === Header === */
header {
  text-align: center;
  padding: 30px 0 20px;
  background: #e6f3ff;
}

header h1 {
  font-size: 36px;
  margin: 0;
  font-weight: 600;
}

header h2 {
  font-size: 20px;
  color: #666;
  margin-top: 10px;
  font-weight: 400;
}

/* === About Section === */
.about-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 20px;
  max-width: 1000px;
  margin: auto;
  gap: 40px;
  flex-wrap: wrap;
}

.profile-photo {
  width: 480px;
  height: 507px;             /* Adjust the height as needed */
  object-fit: cover;         /* Crops image to fill box proportionally */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bio-text {
  flex: 1;
  min-width: 260px;
}

.bio-text h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #222;
}

.bio-text p {
  font-size: 17px;
  color: #444;
}

.cv-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 16px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.cv-button:hover {
  background-color: #005fa3;
}

/* === Teaching Section === */
.teaching-section {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
}

.teaching-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

.teaching-section p {
  font-size: 17px;
  color: #444;
  margin-bottom: 30px;
  line-height: 1.6;
}

.course-list .course {
  margin-bottom: 25px;
  border-left: 4px solid #0077cc;
  padding-left: 15px;
}

.course h4 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #222;
}

.course p {
  font-size: 15px;
  color: #666;
}

/* === Research Section === */
.research-section {
  padding: 40px 20px;
  max-width: 960px;
  margin: auto;
  text-align: left;
}

.research-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
}

/* Tab Buttons */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.tab-button {
  background-color: transparent;
  border: 1px solid #ccc;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  background-color: #0077cc;
  color: white;
  border-color: #0077cc;
}

/* Tab Content */
.tab-content {
  margin-top: 20px;
}

.tab-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #222;
}

.tab-content ul {
  padding-left: 20px;
  margin-bottom: 30px;
}

.tab-content li {
  margin-bottom: 22px;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
}

/* Publication Links */
.tab-content a {
  font-size: 0.95rem;
  margin-left: 4px;
  color: #007b5f;
  text-decoration: none;
  font-weight: 500;
}

.tab-content a:hover {
  text-decoration: underline;
  color: #005f46;
}

/* Italic journal/book titles */
.tab-content em {
  font-style: italic;
  color: #444;
}

/* Optional: Make your name bold */
.tab-content li strong.author {
  font-weight: 600;
  color: #111;
}

/* Responsive */
@media (max-width: 768px) {
  .tab-button {
    padding: 6px 12px;
    font-size: 14px;
  }

  .tab-content li {
    font-size: 0.95rem;
  }
}

# * === Projects Section === */
.projects-header {
  text-align: center;
  margin-top: 40px;
  font-size: 36px;
  font-weight: 600;
  color: #222;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.project-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.project-info {
  padding: 20px;
}

.project-category {
  font-size: 13px;
  text-transform: uppercase;
  color: #0077cc;
  font-weight: 600;
}

.project-info h3 {
  margin-top: 10px;
  font-size: 20px;
  color: #222;
}

.project-info p {
  font-size: 15px;
  color: #555;
  margin-top: 10px;
}

.project-date {
  font-style: italic;
  color: #999;
  margin-top: 10px;
}

/* === CV Section === */
.cv-section {
  text-align: center;
  padding: 60px 20px;
}

.cv-section h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cv-section p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.cv-download-button {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #0077cc;
  color: #0077cc;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s;
}

.cv-download-button:hover {
  background-color: #0077cc;
  color: white;
}

/* === Contact Section === */
.contact-section {
  max-width: 1000px;
  margin: auto;
  padding: 60px 20px 40px;
}

.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-section p {
  text-align: center;
  color: #444;
  margin-bottom: 30px;
  font-size: 1rem;
}

/* Horizontal Row of Social Icons */
.contact-icons-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-icons-row a {
  font-size: 40px;
  color: #0077cc;
  transition: color 0.3s ease, transform 0.2s ease;
}

.contact-icons-row a:hover {
  color: #005fa3;
  transform: scale(1.15);
}

/* Centered Office Block */
.office-location-centered {
  text-align: center;
  max-width: 600px;
  margin: auto;
}

.office-location-centered h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}

.office-location-centered p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Google Map Embed Styling */
.map-container iframe {
  width: 100%;
  height: 250px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* === Footer === */
.site-footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

.site-footer a {
  color: #0077cc;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* === Responsive Styles === */
@media (max-width: 768px) {
  .contact-icons-row {
    gap: 16px;
  }

  .contact-icons-row a {
    font-size: 20px;
  }

  .map-container iframe {
    height: 200px;
  }
}
