/* ========= FONT DECLARATIONS (from original) ========= */
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========= GLOBAL STYLES ========= */
body {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

a {
  color: #0a16f4;
  text-decoration: none;
}

a:hover {
  color: #f09228;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 25px;
  text-decoration: underline;
  text-decoration-color: #0a54f4f5;
  text-decoration-thickness: 2px;
  margin-bottom: 1em;
}

hr {
  border: 0;
  height: 1px;
  background-color: #ddd;
  margin: 2em 0;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

strong {
  font-weight: 700;
}

/* ========= HEADER & PROFILE ========= */
.profile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2em;
}

.profile-info {
  flex: 3; /* Takes 3/4 of the space */
  min-width: 300px;
}

.profile-image {
  flex: 1; /* Takes 1/4 of the space */
  text-align: center;
}

.profile-name {
  font-size: 28px;
  text-align: center;
  margin-top: 0;
}

.social-links {
  text-align: center;
  font-size: 20px;
  margin: 1em 0;
}

.social-links a {
  margin: 0 5px;
}

.affiliations {
  text-align: center;
  margin-top: 1em;
}

.affiliation-logo {
  height: 40px;
  width: auto;
  margin: 0 10px;
  vertical-align: middle;
}


/* ========= SECTIONS ========= */
section {
  margin-bottom: 2em;
}

/* Publication List */
.publication {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 2em;
  overflow: visible !important;
}

.publication-image {
  flex-basis: 230px;
  flex-shrink: 0;
  position: relative;
  overflow: visible !important;
  z-index: 1;
}

.publication-image:hover {
  z-index: 100;
}

.publication-image img {
  display: block;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
  background-color: #fff;
  padding: 5px;
  border: 1px solid #eee;
}

.publication-image img:hover {
  transform: scale(1.15);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  z-index: 100;
}

.publication-details {
  flex: 1;
}

.publication-details h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.publication-details h3 a {
  color: #333; /* Paper titles are not links in the traditional sense */
}
.publication-details h3 a:hover {
  color: #0a16f4;
}

.publication-details p {
  line-height: 1.4;
  margin: 0.15em 0;
}
.authors {
    color: #555;
}
.links img {
    vertical-align: middle;
}

.oral-presentation {
    color: red;
}

.highlight {
    color: red;
}

/* Icon-based sections (Education, Experience) */
.icon-section .entry {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1.5em;
}
.icon-section .icon {
  flex-basis: 120px;
  flex-shrink: 0;
  text-align: center;
}
.icon-section .icon img {
    max-width: 110px;
}

.icon-section .description p {
  margin: 0;
}
.icon-section .description strong {
    font-size: 18px;
}

/* Other publications section */
#other-publications .publication-item {
    margin-bottom: 0.5em;
}
#other-publications .publication-item p {
    margin: 0.2em 0;
}
#other-publications .publication-item p a { /* New rule to be added */
    font-weight: bold;
}

.previous-pubs summary {
  margin: 10px 0;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

.previous-pubs summary:hover {
  color: #0a16f4;
}

/* ========= FOOTER ========= */

#clustrmap-container {
    text-align: center;
    margin: 2em 0;
}

footer {
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* ========= CUSTOM STYLES ========= */
.me {
  text-decoration: underline;
}

.hoverZoomLink {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hoverZoomLink:hover {
  transform: scale(1.15);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  z-index: 100;
  position: relative;
}

.image-credit { /* New rule to be added */
  font-size: 10px;
}
