/* ===== Resume Page CV Boxes ===== */
.resume-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;       /* stack on small screens */
  margin-bottom: 3rem;
}

main h1 {
  color: #155850;
}

.cv-box {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cv-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(21,88,80,0.3);
}

.cv-box h3 {
  margin-bottom: 1rem;
  color: #155850;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.flag-icon {
  width: 30px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.cv-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.cv-link {
  display: inline-block;
  background: #155850;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.cv-link:hover {
  background: #0f3d39;
}

/* ===== Distinctions===== */
.distinctions-list {
  list-style: none;
  padding: 0;
  margin: 2rem auto 3rem auto;
  max-width: 800px;
}

.distinctions-list li {
  background: white;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  line-height: 1.5;
  text-align: left;
}

.distinction-title {
  display: block;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: #155850;
}

.distinction-details {
  display: block;
  font-style: italic;
  color: #333;
}

/* ===== Mentors ===== */
.mentors-list {
  list-style: none;
  text-align: left;
  padding: 0;
  margin: 2rem auto 3rem auto;
  max-width: 900px;
  color: #155850;
}

.mentors-list li {
  background: white;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  line-height: 1.5;
}

.mentors-intro {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  font-style: italic;
  font-size: 1.15rem;
  color: #155850;
  text-align: center;
  line-height: 1.6;
}

.mentor-name {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.mentor-info {
  display: block;
  font-style: italic;
  color: #333;
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #155850;
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;  /* place above */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%; /* bottom of tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #155850 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

body:has(main h2:first-child:contains("Resume")) main {
  max-width: 1000px; /* wider to allow two boxes side by side */
  text-align: center;
}

.resume-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: nowrap; /* prevent wrapping on desktop */
}

/* Ensure boxes shrink if screen is smaller */
@media (max-width: 700px) {
  .resume-container {
    flex-wrap: wrap;  /* stack vertically on mobile */
  }
}

