/* Reset styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  text-align: justify;
  background-color: #f4f4f9;
  color: #333;
}

/* Single container for all content */
.container {
  border: 2px solid #333;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto; 
  padding: 20px;
  background-color: #fff;
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
  position: relative; /* Make the container a positioned parent */
  text-align: center;
  padding: 3rem 3rem 3rem 0; 
  background: url('linkedin_cover.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45); /* Black overlay at 50% opacity */
  z-index: 1; /* Place the overlay behind the text */
}

header h1 {
  position: relative; /* Ensure the text stays above the overlay */
  font-size: 2rem;
  margin: 0;
  z-index: 2; /* Place the text above the overlay */
}

/* Navigation bar */
nav {
  background-color: #555; 
  padding: 0.5rem 0;
  position: relative;
}

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

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  padding: 0.75rem 1rem;
}

.hamburger {
  display: none;
  font-size: 2rem;
}

@media (max-width: 600px) {
  .hamburger {
    display: block;
  }

  nav ul {
    display: none; 
    flex-direction: column;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin-bottom: 15px; /* Space between menu items */
  }

  nav ul li a {
    display: block;
    padding: 15px 10px; /* Ensure enough padding for tap space */
    text-align: center; /* Center the text */
  }
}

/* About-me Section */
.about-me {
  display: flex;
  align-items: center; 
  gap: 20px;
}

.about-me .content {
  flex: 1;
}

.about-me img {
  flex: 0 0 200px;
  max-width: 200px;
  width: 100%; 
  height: auto;
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  align-self: flex-start; /* Align with the first line of text */
  margin-top: 20px; /* Adjust margin to fine-tune alignment */
}

@media (max-width: 600px) {
  .about-me {
    flex-direction: column;
    align-items: center;
  }

  .about-me img {
    margin-top: 20px;
  }
}

footer {
  text-align: center;
  background-color: #333;
  color: #fff;
  padding: 1rem 0;
}

/* Conferences/Workshops Section */
.section-table ul li {
  margin-bottom: 15px; /* Space between list items */
}

.section-table ul {
  padding-left: 0; /* Remove default padding from ul */
}

.section-table h2 {
  margin-bottom: 20px; /* Space below the heading */
}

.section-table ul li span.conference-title {
  font-weight: bold;
}

.section-table ul li span.contribution {
  font-style: italic;
  color: #9e5b40; /* Highlight contributions */
}

.section-table ul li span.institution {
  font-style: italic;
  color: #555; /* Lighter color for institutions */
}

/* Invited Talks/Seminars Section */
.section-table ul li span.location {
  font-weight: bold;
}

.section-table ul li span.talk-title {
  font-style: italic;
  color: #555; /* Lighter color for the talk title */
}

.section-table ul li {
  margin-bottom: 15px; /* Space between list items */
}

.section-table ul {
  padding-left: 0; /* Remove default padding from ul */
}

.section-table h2 {
  margin-bottom: 20px; /* Space below the heading */
}
