/* =========================================================
   CV PAGE
   ========================================================= */

.cv-container {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
}

.cv-hero {
  margin-top: -1rem;
  padding: 5rem 0 4.5rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(125deg, #17324d 0%, #24535f 55%, #2f7173 100%);
}

.cv-kicker,
.cv-section-label {
  display: inline-block;
  color: #2f7173;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.cv-hero .cv-kicker {
  color: #bfe1df;
}

.cv-hero h1 {
  max-width: 820px;
  margin: 0.7rem 0 1rem;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.cv-role {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
  line-height: 1.7;
}

.cv-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
  gap: 3rem;
  padding: 4.5rem 0;
  border-bottom: 1px solid #dfe6e7;
}

.cv-intro h2,
.cv-section h2,
.cv-closing h2 {
  margin: 0.45rem 0 0;
  color: #17324d;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.cv-intro > p {
  margin: 0;
  color: #5f6d75;
  font-size: 1.08rem;
  line-height: 1.8;
}

.cv-section {
  padding: 4.7rem 0;
  border-bottom: 1px solid #dfe6e7;
}

.cv-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.cv-section-number {
  display: flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  color: #255b5d;
  background: #eef3f3;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 750;
}

.cv-education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.cv-education-card,
.cv-engagement-card,
.cv-panel {
  padding: 1.8rem;
  background: #ffffff;
  border: 1px solid #dfe6e7;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(23, 50, 77, 0.05);
}

.cv-year {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #2f7173;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.cv-education-card h3,
.cv-engagement-card h3 {
  margin: 0 0 0.6rem;
  color: #17324d;
  font-size: 1.25rem;
  line-height: 1.3;
}

.cv-education-card p,
.cv-engagement-card p {
  margin-bottom: 0;
  color: #5f6d75;
}

.cv-institution {
  color: #255b5d !important;
  font-weight: 650;
}

.cv-timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.cv-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 218px;
  width: 2px;
  background: #dfe6e7;
  content: "";
}

.cv-job {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 3.5rem;
  min-height: 96px;
  padding: 1rem 0 1.3rem;
}

.cv-job::before {
  position: absolute;
  top: 1.35rem;
  left: 212px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 3px solid #2f7173;
  border-radius: 50%;
  content: "";
}

.cv-job-date {
  padding-top: 0.15rem;
  color: #5f6d75;
  font-size: 0.87rem;
  font-weight: 650;
  text-align: right;
}

.cv-job-details h3 {
  margin: 0;
  color: #17324d;
  font-size: 1.13rem;
  line-height: 1.35;
}

.cv-job-details p {
  margin: 0.28rem 0 0;
  color: #5f6d75;
}

.cv-job-featured {
  margin-bottom: 0.7rem;
  padding: 1.2rem 1rem 1.3rem 0;
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(47, 113, 115, 0.06) 22%,
    rgba(47, 113, 115, 0.06) 100%
  );
  border-radius: 14px;
}

.cv-job-featured .cv-job-details h3 {
  color: #255b5d;
  font-size: 1.24rem;
}

.cv-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.cv-panel {
  height: 100%;
}

.cv-panel h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cv-panel p,
.cv-panel li {
  color: #5f6d75;
}

.cv-panel-dark {
  color: #ffffff;
  background: linear-gradient(135deg, #17324d, #2f7173);
  border: none;
}

.cv-panel-dark .cv-section-label {
  color: #bfe1df;
}

.cv-panel-dark h2 {
  color: #ffffff;
}

.cv-panel-dark p {
  color: rgba(255, 255, 255, 0.84);
}

.cv-clean-list {
  margin: 0;
  padding-left: 1.15rem;
}

.cv-clean-list li {
  margin-bottom: 0.55rem;
}

.cv-subheading {
  margin: 1.6rem 0 0.8rem;
  color: #17324d;
  font-size: 1.05rem;
  font-weight: 700;
}

.cv-engagement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

/* Skills — robust three-column card grid */

.cv-skills-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.cv-skill-card {
  position: relative;
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  overflow: hidden;
  color: #17324d;
  background:
    linear-gradient(145deg, #ffffff 0%, #f5f8f8 100%);
  border: 1px solid #dfe6e7;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(23, 50, 77, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.cv-skill-card::after {
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 95px;
  height: 95px;
  background: rgba(47, 113, 115, 0.08);
  border-radius: 50%;
  content: "";
}

.cv-skill-card:nth-child(3n + 2)::after {
  background: rgba(140, 73, 58, 0.08);
}

.cv-skill-card:nth-child(3n)::after {
  background: rgba(66, 93, 71, 0.09);
}

.cv-skill-card:hover {
  border-color: rgba(47, 113, 115, 0.5);
  box-shadow: 0 14px 32px rgba(23, 50, 77, 0.11);
  transform: translateY(-4px);
}

.cv-skill-number {
  position: relative;
  z-index: 1;
  color: #2f7173;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.cv-skill-card strong {
  position: relative;
  z-index: 1;
  max-width: 90%;
  color: #17324d;
  font-size: 1.04rem;
  line-height: 1.35;
}

.cv-closing {
  margin: 4rem 0 1rem;
  padding: 3rem;
  color: #ffffff;
  background: linear-gradient(120deg, #2f7173, #17324d);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(23, 50, 77, 0.18);
}

.cv-closing h2 {
  margin-top: 0;
  color: #ffffff;
}

.cv-closing p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .cv-intro,
  .cv-two-column {
    grid-template-columns: 1fr;
  }

  .cv-education-grid {
    grid-template-columns: 1fr;
  }

  .cv-skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cv-timeline::before {
    left: 15px;
  }

  .cv-job {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-left: 2.7rem;
  }

  .cv-job::before {
    left: 9px;
  }

  .cv-job-date {
    text-align: left;
  }

  .cv-job-featured {
    padding-left: 2.7rem;
  }
}

@media (max-width: 650px) {
  .cv-container {
    width: min(100% - 2rem, 1100px);
  }

  .cv-hero {
    padding: 3.8rem 0 3.4rem;
  }

  .cv-hero h1 {
    font-size: 3rem;
  }

  .cv-intro,
  .cv-section {
    padding: 3.3rem 0;
  }

  .cv-section-heading {
    gap: 0.8rem;
  }

  .cv-section-number {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .cv-engagement-grid,
  .cv-skills-grid {
    grid-template-columns: 1fr !important;
  }

  .cv-skill-card {
    min-height: 115px;
  }

  .cv-closing {
    padding: 2rem;
    text-align: center;
  }

  .cv-closing .btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}
