/* ======================================================
   CV PAGE — Unified Style Sheet
   (clean typography, consistent scale, readable spacing)
====================================================== */

#cv-page {
  box-sizing: border-box;
  font-family: 'Inter', 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  background-color: #fff;
  padding: 2rem 0rem;
}

/* ======================================================
   SECTION STRUCTURE
====================================================== */

section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e6e6e6;
}
section:last-child {
  border-bottom: none;
}

section h2 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  font-weight: bold;
  padding-bottom: 0.3rem;
  color: #222;
}

/* ======================================================
   HEADER / HERO SECTION
====================================================== */

.cv-header {
  margin-bottom: 2rem;
}

.cv-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  border-bottom: 2px solid #eee;
  padding-bottom: 1rem;
  gap: 1.5rem;
}

.cv-name-block {
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  flex: 0 1 auto;
  max-width: 600px;
  margin-right: auto;
  margin-left: 0;
}

.cv-name {
  margin: 0;
  font-weight: bold;
  letter-spacing: 0.4px;
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-contact-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.cv-contact-block a {
  color: #46003c;
  text-decoration: none;
}
.cv-contact-block a:hover {
  text-decoration: underline;
}

.separator {
  color: #999;
}

.linkedin-icon {
  width: 18px;
  height: 18px;
  fill: #46003c;
  vertical-align: middle;
  transition: fill 0.2s;
}
.cv-linkedin:hover .linkedin-icon {
  fill: #6a008f;
}
.linkedin-blob {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f3eff3;  /* blob color */
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    
    /* Make it blobby */
    border-radius: 50% 40% 60% 50% / 55% 60% 40% 45%;
    
    /* Optional: add a subtle shadow for depth */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    
    transition: all 0.3s ease; /* smooth hover effect if needed */
}

/* Optional hover effect to exaggerate the blob */
.linkedin-blob:hover {
    border-radius: 40% 60% 50% 55% / 60% 50% 55% 40%;
}

/* Icon inside the blob */
.linkedin-blob .linkedin-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* ======================================================
   ROLE HEADERS & LISTS (GENERAL)
====================================================== */

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .25rem;
}

.role-meta {
  flex: 1 1 70%;
  min-width: 250px;
  order: 1;
}

.role-date {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #777;
  font-size: 0.9rem;
  text-align: right;
  order: 2;
}

/* Small screens: stack vertically */
@media (max-width: 768px) {
  .role-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .role-date {
    order: 0;
    text-align: left;
  }
  .role-meta {
    order: 1;
  }
}

/* ======================================================
   SECTION-SPECIFIC STYLING
====================================================== */

.cv-research li {

  padding-bottom: 1rem;
  border-bottom: 1px dashed #ddd;
}

.cv-research li:last-child,
.cv-international li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* --- Shared list formatting --- */
.cv-education ul,
.cv-research ul,
.cv-international ul,
.cv-fellowships ul,
.cv-honors ul,
.cv-outreach ul,
.cv-teaching ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-education li,
.cv-research li,
.cv-international li,
.cv-fellowships li,
.cv-honors li,
.cv-outreach li,
.cv-teaching li {
  font-size: 1rem;

}

.cv-education strong,
.cv-research strong,
.cv-fellowships strong,
.cv-international strong {
  color: #333;
}

.advisor,
.thesis {
  margin: 0.25rem 0;
  font-style: italic;
  color: #555;
  font-size: 0.95rem;
}

/* Reuse global role-header, role-meta, role-date, advisor, role-details */

/* ======================================================
   YEAR/DATES BELOW ITEM — Education, Fellowships, Honors, Research, Teaching, Outreach
====================================================== */

.cv-education .role-header,
.cv-fellowships .role-header,

.cv-honors .role-header,
.cv-research .role-header,
.cv-international .role-header,
.cv-teaching .role-header,
.cv-outreach .role-header {
  flex-direction: column;
  align-items: flex-start;
}

.cv-education .role-date,
.cv-international .role-date,
.cv-fellowships .role-date,
.cv-honors .role-date,
.cv-research .role-date,
.cv-teaching .role-date,
.cv-outreach .role-date {
  order: 2;
  margin-top: 0.1rem; /* tighter link between title and date */
  text-align: left;
  color: #777;
  font-size: 0.9rem;
}

/* ======================================================
   PUBLICATIONS & TALKS
====================================================== */

#publications h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}


.footnote-flag {
  font-size: 0.85rem;
  color: #555;             /* subtle, readable */
  font-style: italic;
  margin-left: 0.35rem;
  padding: 0;              /* no background bubble */
}


#publications ol,
#talks ol,
#oral-presentations ol {
  margin-left: 1.25rem;
  padding-left: 1rem;
  font-size: 1rem;
}

#publications li,
#talks li,
#oral-presentations li {
  margin-bottom: 0.75rem;
}

#publications em {
  font-style: italic;
}

.corresponding {
  background-color: #46003c10;
  border-radius: 5px;
  padding: 0.15rem 0.4rem;
  margin-left: 0.4rem;
  font-size: 0.9rem;
  color: #46003c;
}

/* ======================================================
   RESPONSIVE
====================================================== */

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

  .cv-name-block {
    margin: 0 auto;
    text-align: center;
    max-width: 90%; /* prevent overflowing horizontally */
  }

  .cv-name {
    font-size: 1.5rem;
  }

  .cv-contact-block {
    justify-content: center;
    width: 100%;
  }
}



@media (max-width: 768px) {
  .cv-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .cv-name {
    font-size: 1.2rem;
  }
  .role-header {
    flex-direction: column;
    gap: 0.25rem;
  }
  .role-date {
    white-space: normal;
  }
}
