:root {
  --text-color: #2e2e2e;
  --bg-color: #d6d6d6; /* Concrete-like grey */
  --link-color: #3c3c3c;
  --border-color: #a9a9a9;
  --shadow-color: rgba(0, 0, 0, 0.15);
  --bg-texture: url("concrete-wall.png"); /* Path to your texture image */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.6; /* Increased for better readability */
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image: var(--bg-texture);
  margin: 0;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 800px; 
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px; 
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-color); 
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
  .category h2 {
  display: flex; /* Makes the h2 a flex container */
  flex-wrap: nowrap; /* Forces all links onto one line */
}
  .category a {
    flex: 1; /* Allows links to grow equally */
    text-align: center; /* Centers text within each link */
    margin: 0 5px; /* Adds horizontal spacing between links */
  }
}

.compact-list a {
  color: var(--text-color);
}

.compact-list li {
  padding: 4px 0;
  line-height: 1.4;
}

.compact-list a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease-in-out;
}

.compact-list a:hover {
  color: var(--link-color);
  text-decoration: underline dashed;
}

.category {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px; /* Use gap for spacing */
  margin-bottom: 2rem;
}


.category a {
  padding: 10px 18px;
  flex-wrap: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-color);
  background: #f1f3f5;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  margin: 1px 3px 1px 4px;
}

.category a:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category a.active {
  background: var(--link-color);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}


.my-container {
  width: 100%;
  margin: 2rem 0;
  text-align: center;
}

.my-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.toc ul {
  list-style-type: none;
  padding-left: 0;
}

.toc li {
  margin: 8px 0;
}

.toc a {
  text-decoration: none;
  color: var(--text-color);
}

.toc a:hover {
  text-decoration: underline;
}

/* --- Styles for a Captioned Image --- */

.image-caption-container {
  /* Adjust width as needed, or remove for full-width */
  max-width: 350px; 
  /* Centers the block on the page */
  margin: 2rem auto; 
  text-align: center;
}

.image-caption-container img {
  width: 100%;
  /* Set the height as you requested */
  height: 250px; 
  /* Ensures the image fits without being distorted */
  object-fit: cover; 
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.image-caption-container p {
  font-size: 0.9rem;
  color: var(--meta-text-color); /* Uses the text color from your theme */
  margin: 0;
}

.publication {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pub-thumbnail img {
  max-width: 300px;
  height: auto;
  border-radius: 2px;
}

.pub-description {
  flex: 1;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  padding: 0; 
  
}
.pub-description p {
  margin: 0;
}

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

  .pub-thumbnail img {
    max-width: 100%;
  }

  .pub-description {
    text-align: left;
  }
}

a {
  text-decoration: none;
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-top: 3px solid #7b8a99;
  padding-top: 37px;
  margin: 50px auto;
  max-width: 1000px;
}

.event {
  text-align: center;
  position: relative;
  flex: 1;
}

.event::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: #d3d8dc;
  border: 2px solid #7b8a99;
  border-radius: 50%;
  position: absolute;
  top: -48.5px;
  left: 50%;
  transform: translateX(-50%);
}

.year {
  font-weight: bold;
  color: #2e3b4e;
  margin-top: -25px; /* Adjust this value to bring them closer */
}


.desc {
  font-size: 11px;
  color: #2e3b4e;
  white-space: nowrap; 
}


/* --- End of main.css --- */

