/*************************************************************************
 * This css file is for your own style.
 *************************************************************************/

.content-table>div:first-child>div:first-child>h2:first-child {
  margin-top: 0;
}

/* Header art styling */
.header-art {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 20px;
}

.header-image {
  width: 100%;
  height: auto;
  /* max-width: 100%; */
  max-height: 500px;
  object-fit: contain;
}

/* Profile section layout */
.profile-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 30px 20px 0;
  align-items: flex-start; /* Align items to the top */
}

/* Profile image styling */
.profile-left-column {
  flex: 0 0 auto;
  margin-right: 30px;
  width: 180px;
  max-width: 180px; /* Add explicit max-width */
}

.profile-image-container {
  width: 180px;
  margin-right: 50px; /* Increase spacing between image and About section */
  margin-top: 10px;
  overflow: hidden; /* Hide any overflow from the image */
}

.profile-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Profile content styling */
.profile-content {
  flex: 1 1 60%;
  min-width: 300px; /* Ensure content has enough room */
}

.about-heading {
  margin-top: 0;
  font-size: 36px;
}

.profile-title {
  margin: 8px 0 0;
  font-size: 17px;
  color: #555;
  line-height: 1.5;
}

.profile-links {
  margin: 14px 0 0;
  font-size: 15px;
}

.profile-links a {
  color: #005cbf;
  text-decoration: none;
}

.profile-links a:hover {
  text-decoration: underline;
}

.sep {
  color: #bbb;
  margin: 0 6px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

/* Personal info section styling */
.info-section {
  margin: 30px 20px 0;
}

.info-section h2 {
  margin-top: 0;
}

/* Home page sections */
.home-section {
  margin: 45px 20px 0;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.home-section h2 {
  margin-top: 0;
}

.research-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 40px;
  margin-top: 20px;
}

.research-area {
  flex: 1 1 300px;
  min-width: 260px;
}

.research-area h3 {
  margin-bottom: 6px;
  color: #005cbf;
}

.research-area .text {
  margin-top: 0;
}

.selected-work {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.selected-work li {
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid #e0e0e0;
  line-height: 1.6;
}

.selected-work a {
  color: #005cbf;
  text-decoration: none;
  font-weight: bold;
}

.selected-work a:hover {
  text-decoration: underline;
}

.more-link a {
  color: #005cbf;
  text-decoration: none;
}

.more-link a:hover {
  text-decoration: underline;
}

.contact-section a {
  color: #005cbf;
  text-decoration: none;
}

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

/* Projects section styling */
.projects-section {
  margin: 40px 20px 20px;
}

.projects-section h1 {
  margin-bottom: 25px;
}

.project-item {
  display: flex;
  flex-direction: row;
  margin-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 30px;
}

.project-item:last-child {
  border-bottom: none;
}

.project-image-container {
  flex: 0 0 250px;
  margin-right: 25px;
  max-width: 250px; /* Ensure a maximum width */
  overflow: hidden; /* Hide any overflow */
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 200px; /* Limit height */
  object-fit: cover; /* Maintain aspect ratio */
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-content {
  flex: 1;
}

.project-content h2 {
  margin-top: 0;
  color: #333;
}

.project-meta {
  margin: 0 0 10px;
  font-size: 0.85em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-stack {
  margin-top: 10px;
  font-size: 0.9em;
  color: #555;
}

.project-links {
  margin-top: 15px;
}

.project-links a {
  color: #005cbf;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

/* Search functionality styling */
.search-container {
  margin-bottom: 30px;
  width: 100%;
  max-width: 600px;
}

.search-box {
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus {
  outline: none;
  border-color: #005cbf;
  box-shadow: 0 1px 3px rgba(0,92,191,0.3);
}

.no-results-message {
  padding: 20px;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 30px;
  text-align: center;
  font-style: italic;
  color: #666;
}

/* Technical Skills section styling */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.skill-category {
  flex: 1;
  min-width: 200px;
}

.skill-category h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
}

.skills-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 8px;
}

.skills-list li {
  display: inline-block;
  background-color: #f5f5f5;
  color: #333;
  padding: 5px 12px;
  margin: 0 8px 8px 0;
  border-radius: 15px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
}

/* Responsive styling for smaller screens */
@media screen and (max-width: 768px) {
  .profile-section {
    flex-direction: column;
  }
  
  .profile-image-container {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 180px;
  }
  
  .about-heading {
    margin-top: 20px;
  }
  
  .project-item {
    flex-direction: column;
  }
  
  .project-image-container {
    margin-right: 0;
    margin-bottom: 20px;
    max-width: 100%;
  }
}

#me {
  width: 250px;
  border-radius: 50%;
}

.flex-item-stretch-6 {
  flex: 1 auto;
}

.max-width-600 {
  max-width: 900px;
}

/* Responsive design for the main flex layout */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 30px;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* Make sure the layout works on mobile devices */
@media screen and (max-width: 768px) {
  .flex-row {
    flex-direction: column;
  }
  
  .flex-column[style*="max-width: 250px"] {
    max-width: 100% !important;
    margin-right: 0 !important;
  }
}

@media screen and (min-width: 900px) {
  .flex-item-stretch-6 {
    flex: 5.5;
  }
}