/* Updated jemdoc.css for a more professional, left-aligned, and visually appealing style */

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #FAFAFA;
  color: #333;
}

/* Navigation Bar */
.navbar {
  background-color: #2C3E50;
  padding: 10px 20px;
  text-align: left; /* Left-align the nav links */
}

.navbar a {
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
  padding: 8px 16px;
  border-radius: 4px;
}

.navbar a:hover,
.navbar a.active {
  background-color: #34495E;
  color: #ffffff;
}

/* Container for each section (Home / Publications) */
.container {
  max-width: 1100px;
  margin: 30px auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* Hide sections initially; show with 'active' class */
.section {
  display: none;
}
.section.active {
  display: block;
}

/* Profile Container: three columns: photo, main info, contact info */
.profile-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px; /* Increase gap for bigger space between columns */
  margin-bottom: 20px;
}

.profile-image {
  flex-shrink: 0;
}
.profile-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.profile-info {
  flex-grow: 1; /* Middle column expands */
}

.profile-contact {
  flex-shrink: 0;
  text-align: left;
}

/* Name and Title */
.profile-info h1 {
  margin: 0;
  font-size: 1.8em;
  color: #2c3e50;
}
.profile-info h2 {
  margin: 5px 0 10px;
  font-size: 1.2em;
  color: #7f8c8d;
}

.contact-icon {
  width: 22px;
  height: 22px;
  vertical-align: left;  /* Aligns icon with text */
  margin-right: 5px;       /* Space between icon and text */
}

/* Container to ensure left alignment */
.contact-container {
  text-align: left; /* Aligns contents to the left */
  margin-top: 10px; /* Optional spacing above */
}

/* Each row: icon + text */
.contact-item {
  display: flex;        /* Places icon and text side by side */
  align-items: left;  /* Vertically centers the icon with text */
  margin-bottom: 10px;   /* Spacing between rows */
}

/* Icon size & spacing */
.contact-item img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

/* A simple "View Site" button style */
.view-site-btn {
  background-color: #2980B9;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
.view-site-btn:hover {
  background-color: #1f5f80;
}

/* Headings */
h1, h2 {
  color: #2c3e50;
  margin-top: 0;
}

/* Smaller line spacing for text paragraphs */
p {
  line-height: 1.5;
}

/* Lists */
ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 20px;
  line-height: 1.6;
}

li {
  margin-bottom: 6px;
}

/* Example for sub-headers within Publications */
h2 {
  margin-top: 30px;
  font-size: 1.4em;
  border-bottom: 2px solid #2980B9;
  display: inline-block;
  padding-bottom: 3px;
}

/* Updated Education Table Styling */
.education-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.education-table th,
.education-table td {
  border: 1px solid #ddd;
  padding: 16px; /* Increased padding for larger margins */
  text-align: left; /* Ensures left alignment for all contents */
}

.education-table th {
  background-color: #f2f2f2;
  color: #333;
}

.education-table tr:nth-child(even) {
  background-color: #fafafa;
}

.education-table tr:hover {
  background-color: #f1f1f1;
}

