:root {
  --cv-theme-dive: #e6f0f6;
  --cv-theme-pedagogy: #f6f1ea;
  --cv-theme-digital: #eaf4f1;
  --cv-theme-transverse: #ffffff;
  --cv-bg: #f6f8fb;
  --cv-card: #ffffff;
  --cv-border: rgba(0, 0, 0, .08);
  --cv-radius: 18px;
}

body {
  background: var(--cv-bg);
}

.cv-card {
  background: var(--cv-card);
  border: 1px solid var(--cv-border);
  border-radius: var(--cv-radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.cv-chip {
  border-radius: 999px;
  border: 1px solid var(--cv-border);
  background: rgba(255, 255, 255, .6);
  padding: .25rem .6rem;
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}

.cv-section-title {
  font-weight: 800;
  letter-spacing: .2px;
}

.skill-level .fa-star {
  opacity: .35;
}

.skill-level[data-level="1"] .s1,
.skill-level[data-level="2"] .s1,
.skill-level[data-level="2"] .s2,
.skill-level[data-level="3"] .s1,
.skill-level[data-level="3"] .s2,
.skill-level[data-level="3"] .s3,
.skill-level[data-level="4"] .s1,
.skill-level[data-level="4"] .s2,
.skill-level[data-level="4"] .s3,
.skill-level[data-level="4"] .s4 {
  opacity: 1;
}


/* Theme backgrounds for CV cards (experiences / trainings) */
.cv-theme {
  background: var(--cv-card);
}

.cv-theme--dive {
  background: var(--cv-theme-dive);
}

.cv-theme--pedagogy {
  background: var(--cv-theme-pedagogy);
}

.cv-theme--digital {
  background: var(--cv-theme-digital);
}

.cv-theme--transverse {
  background: var(--cv-theme-transverse);
}

/* Contact card */
.cv-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--cv-border);
  flex: 0 0 auto;
}

.cv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .cv-contact {
    position: sticky;
    top: 1rem;
  }
}

/* Modal header themed */
.cv-modal-header {
  border-bottom: 1px solid var(--cv-border);
}

.cv-modal-header.cv-theme--dive {
  background: var(--cv-theme-dive);
}

.cv-modal-header.cv-theme--pedagogy {
  background: var(--cv-theme-pedagogy);
}

.cv-modal-header.cv-theme--digital {
  background: var(--cv-theme-digital);
}


/* Contact inline (inside hero on desktop) */
.cv-hero .cv-contact-inline {
  border-left: 1px solid var(--cv-border);
  padding-left: 1rem;
}

.cv-contact-inline {
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--cv-border);
  border-radius: 14px;
  padding: 1rem;
}

.star-small {
  font-size: 12px;
}

.nav-icon-link {
  display: flex;
  align-items: center;
  padding: .5rem 1rem;
  line-height: 1.2;
  text-decoration: none;
}

.nav-icon-link i {
  margin-right: .35rem;
}

.brand-mpsub {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.brand-mpsub img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(22, 119, 255, .22);
}

.navbar-nav form {
  margin: 0;
}

.personnel-card {
  padding: 0.5rem;
}

.activity-media-thumb {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-width: 96px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--cv-border);
}

.activity-media-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-media-thumb--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .42), rgba(0, 0, 0, .08));
}

.activity-media-thumb-lg {
  width: 128px;
  min-width: 128px;
  height: 86px;
}

.activity-media-modal-body {
  min-height: 120px;
}

.activity-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(230, 33, 23, .95);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 11px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.activity-media-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 10px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, .74);
  border-radius: 999px;
  padding: 4px 7px;
  z-index: 2;
}

@media (max-width: 576px) {
  .activity-media-thumb {
    width: 80px;
    min-width: 80px;
    height: 54px;
  }

  .activity-media-thumb-lg {
    width: 96px;
    min-width: 96px;
    height: 64px;
  }

  .activity-media-play {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .activity-media-badge {
    font-size: 9px;
    padding: 3px 6px;
  }
}
