/* =========================================================
   custom.css
   Additional styles layered on top of style.css.
   Place this file in assets/css/custom.css
   ========================================================= */

:root {
  /* Green matched to your theme's existing accent (the underline
     under "Education", the bold dates, "Stochastic Analysis"...).
     Change this one line if the exact shade differs. */
  --accent: #18d26e;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --muted: #6c757d;
}

section {
  scroll-margin-top: 90px;
}

.section-gap {
  margin-top: 2.5rem;
}

/* ---------- Profile photo: fixed square box + cover = real circle ---------- */
.img_profil {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bio-list {
  padding-left: 1.1rem;
  margin-top: 0.6rem;
}

.bio-list li {
  margin-bottom: 0.7rem;
  line-height: 1.65;
}

/* ---------- CV link strip ---------- */
.cv-strip .col-lg-12 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .cv-strip .col-lg-12 {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Timeline-style cards (Education, Teaching, Talks) ---------- */
.cv-timeline {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.cv-timeline > li {
  padding: 1.15rem 1.3rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.045);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cv-timeline > li:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.cv-timeline > li p {
  margin: 0;
  line-height: 1.55;
}

/* space between the main line and the subtitle line underneath */
.cv-timeline > li p:not(:last-child) {
  margin-bottom: 0.35rem;
}

.cv-timeline .subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.15rem;
}

.talks-list .get-started-btn.sm {
  margin-left: 0.5rem;
}

/* ---------- Small inline pill-style buttons (Slides / Link / PDF) ---------- */
.get-started-btn.sm {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 20px;
  margin-right: 0.4rem;
  margin-top: 0.4rem;
}

/* ---------- Publications & PhD thesis ---------- */
.pub-item {
  padding: 1.15rem 1.3rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.045);
}

.pub-item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.pub-item p {
  margin-bottom: 0.6rem;
}

.pub-item p:last-child {
  margin-bottom: 0;
}

/* ---------- Research funding ---------- */
.funding-card {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.045);
}

.funding-card p {
  margin-bottom: 0.6rem;
}

.funding-card p:last-child {
  margin-bottom: 0;
}

.funding-card .subtitle {
  display: block;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.2rem;
  margin-bottom: 0.9rem; /* breathing room before "Project:" */
}

/* ---------- Contact ---------- */
.contact .email a,
.contact .phone a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .info.col-lg-12.row > div {
    margin-bottom: 1.5rem;
  }
  .info.col-lg-12.row > div:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .img_profil {
    width: 180px;
    height: 180px;
  }

  .talks-list .get-started-btn.sm {
    display: block;
    margin-left: 0;
    width: fit-content;
  }
}
