/* Existing styles */
:root {
    --primary-color: #0077B6;
    --secondary-color: #868e96;
    --background-color: #F8F9FA;
    --text-color: #212529;
    --light-gray: #E9ECEF;
    --link-color: #0077B6;
    --title-color: #33658A;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 0.8rem;
}

/* Target main content area */
body .content-container {
    font-size: 0.9rem;
}

/* Ensure navbar text remains unchanged */
.navbar {
    font-size: 1rem;  /* or whatever size you prefer */
}


/* Updated navbar logo styles */
/* Updated navbar logo styles */
.navbar-logo {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar-brand-container {
    display: flex;
    align-items: center;
}

/* Ensure the logo doesn't shrink */
.navbar > .container-fluid {
    flex-wrap: nowrap;
}

/* Adjust spacing between logo and title */
.navbar-title {
    padding-left: 10px;
}



h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h1.title {
    color: var(--title-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
    color: #33658A;
}

h2_date {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    color: #212529;
}

.container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

.photo img {
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Home information */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.two-column-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin: 0rem 0 0 0; /* Remove auto margins */
    gap: 12rem; /* Adds space between columns */
}

.column {
    flex-basis: 48%;
}

.column ul {
    padding-left: 20px;
}

.bio-container {
    display: flex;
    gap: 40px;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.bio-photo-container {
    display: flex;
    gap: 40px;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.bio-column {
    flex: 1;
}

.photo-column {
    flex: 0 0 300px;
}

.profile-photo {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.skills-interests-container {
    display: flex;
    gap: 40px;
    margin-top: 2rem;
}

.skills-interests-container .column {
    flex: 1;
}

@media (max-width: 768px) {
    .bio-photo-container,
    .skills-interests-container {
        flex-direction: column;
    }

    .photo-column {
        max-width: 200px;
        margin: 0 auto 20px auto;
    }

    .skills-interests-container .column {
        margin-bottom: 1rem;
    }
}


/* CV styles */
.experience-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease-in-out;
    width: 100%; /* Ensures the item takes full width of its container */
    box-sizing: border-box; /* Ensures padding and border are included in width */
}


.experience-item:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.experience-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 600;
    color: #5A88C4
}

.experience-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.experience-item p {
    margin-bottom: 0.5rem;
}

.experience-item ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.experience-item li {
    margin-bottom: 0.3rem;
}


.cv-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: background-color 0.2s ease-in-out;
}

.cv-download:hover {
    background-color: #005d91;
    color: white;
    text-decoration: none;
}

.cv-section {
    margin-bottom: 3rem;
}

/* Publications styles */

.publication-year {
  margin-bottom: 2rem;
}

.publication-year h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

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

.publication-list li {
  margin-bottom: 1rem;
  text-indent: -1em;
  padding-left: 1em;
  line-height: 1.6;
}

.publication-list a {
  color: #0077B6;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.publication-list a:hover {
  text-decoration: underline;
}


/* Illustration page */

/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Gallery style */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 0 auto;
  max-width: 1600px;
  font-size: 0; /* Eliminates whitespace between inline elements */
}

/* TO not have space below the galery images */
.gallery * {
  margin: 0;
  padding: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: white;
  margin-bottom: -4px; /* This negative margin often helps with image gaps */
  vertical-align: bottom;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  flex: 1; /* Add this line */
}

.gallery-item a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 250, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover a::after {
  opacity: 1;
}

.gallery-item .caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.gallery-item:hover .caption {
  opacity: 1;
}

/* Inline images section remains unchanged */
.inline-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.inline-images img {
    width: 33%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.reduced-image-small {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.reduced-image-medium {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.reduced-image-large {
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
}
