/* Propel Profile – main styles (desktop-first). Readable, not minified) */

.propel-profile {
  background-color: #f2f2f2 !important;
}

.pp-p {
  margin: 0 0 -14px;
}

.pp-avatar-contener {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Base with header-specific gutter vars */
.propel-profile {
  --c: #0f766e;
  --c2: #083344;
  --muted: #6b7280;
  --pp-header-left: 10vw;
  --pp-header-right: 10vw;
}
/* Header */
.pp-header {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 75px var(--pp-header-right) 75px var(--pp-header-left);
  background: #0b3f3a;
  color: #fff;
  margin-top: -10px;
}
.pp-meta {
  margin: 0 0 6px;
  font-weight: 700;
  color: #f2f2f2;
}
.pp-name {
  margin: 0;
  font-weight: 700;
  color: #f2f2f2;
  font-family: "Libre Franklin", Sans-serif !important;
}
.pp-title {
  color: #f2f2f2;
  font-size: 18px;
  padding-top: 15px;
  font-weight: normal;
}
.pp-location {
  color: #f2f2f2;
  font-size: 14px;
  font-weight: normal;
}

.pp-counters {
  position: absolute;
  bottom: 0;
  left: 56%;
  display: flex;
  gap: 18px;
  margin: 0;
}
.pp-counter {
  background: #0f766e;
  text-align: center;
  border-radius: 0;
  min-width: 16vw;
}
.pp-counter-num {
  font-size: 30px;
  font-weight: 700;
  color: #f4945c;
  font-family: "DM Mono", monospace !important;
}
.pp-counter-label {
  font-size: 16px;
  color: #f2f2f2;
}

/* Content grid */
.pp-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin-top: 45px;
  margin-left: 10vw;
  margin-right: 10vw;
}
.pp-card {
  background: #f2f2f2;
  border: 1px solid #bdbec2;
  padding: 18px;
}
.pp-card.-wide {
  grid-column: 1 / -1;
}
.pp-card-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 24px;
  padding-left: 4px;
  color: #063330;
}
.pp-muted {
  color: #6b7280;
}

/* Donut + tiles */
.pp-progress2 {
  display: grid;
  grid-template-columns: 50% 0fr;
  align-items: center;
}
.pp-donut-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pp-donut-title {
  font-weight: normal;
  font-size: 16px;
  margin-bottom: 10px;
  color: #063330;
}
.pp-donut {
  --p: 0;
  --c1: #fc5c3a;
  --c2: #e5e7eb;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(var(--c1) calc(var(--p) * 1%), var(--c2) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 12px;
  position: relative;
}
.pp-donut::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: #f2f2f2;
  border-radius: 50%;
}
.pp-donut-center {
  position: relative;
  text-align: center;
  z-index: 2;
}
.pp-donut-number {
  margin-top: 20px;
  font-size: 50px;
  font-weight: 800;
  color: #fc5c3a;
  line-height: 1;
  font-family: "DM Mono", monospace !important;
}
.pp-donut-sub {
  color: #063330;
  font-size: 14px;
  margin-top: 6px;
}

.pp-donut-note {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #0b3f3a;
  font-size: 14px;
  line-height: 1.25;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  width: 180px;
  height: 60px;
  margin: 10px auto 12px;
}
.pp-donut-note::before {
  content: "";
  position: absolute;
  left: 16px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.02);
}
.pp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fc5c3a;
}
.pp-note-line1 {
  grid-column: 2;
}
.pp-note-line2 {
  grid-column: 2;
  margin-top: 2px;
}
.pp-donut-note strong {
  font-weight: 600;
  color: #111827;
}

/* Tiles */
.propel-profile {
  --pp-blue-royal: #486ec8;
  --pp-green-teal: #0f645d;
  --pp-yellow-soft: #e7dd5d;
  --pp-pill: #e6ecf6;
  --pp-text-dark: #062b2b;
}
.pp-tiles-v2 {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 36px;
  justify-content: center;
}
.pp-tiles-v2 .pp-yellow {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.pp-tile-v2 {
  max-width: 225px;
  max-height: 174px;
  min-width: 225px;
  aspect-ratio: 1/1;
  border-radius: 0 !important;
  border: none;
  box-shadow: none;
  padding: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.pp-blue {
  background: var(--pp-blue-royal);
  color: #fff;
}
.pp-green {
  background: var(--pp-green-teal);
  color: #fff;
}
.pp-yellow {
  background: var(--pp-yellow-soft);
  color: var(--pp-text-dark);
}
.pp-tile-v2 .pp-top {
  align-self: stretch;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  letter-spacing: 0.2px;
  font-size: 14px;
}
.pp-sub {
  color: #063330;
  font-size: 16px;
}
.pp-ico {
  font-size: 1.2em;
  line-height: 1;
}
.pp-big {
  margin-top: 16px;
  line-height: 1;
  font-weight: 600;
  font-size: 45px;
  font-family: "DM Mono", monospace !important;
}
.pp-unit {
  font-size: 16px;
  color: #f2f2f2;
}
.pp-pill {
  min-width: 80%;
  margin-top: auto;
  margin-bottom: 6px;
  display: inline-block;
  padding: 3px 16px;
  background: var(--pp-pill);
  font-weight: 600;
  border-radius: 0;
  font-size: 14px;
}
.pp-blue .pp-pill {
  color: var(--pp-blue-royal);
}
.pp-green .pp-pill {
  color: #063330;
}

/* Certificados slider */
.pp-cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pp-cert-arrow {
  border: 1px solid #e5e7eb;
  background: #fff;
  width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  font-size: 26px;
  color: #0b3f3a;
  cursor: pointer;
}
.pp-cert-track-wrapper {
  overflow: hidden;
}
.pp-cert-track {
  display: flex;
  gap: 16px;
  scroll-behavior: smooth;
}
.pp-cert-card {
  min-width: 362px;
  max-width: 362px;
  flex: 0 0 310px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #0b3f3a0d;
  display: flex;
  flex-direction: column;
}
.pp-cert-media-wrap {
  position: relative;
  line-height: 0;
  background: #0b3f3a;
}
.pp-cert-media-wrap img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
  mix-blend-mode: multiply;
}
.pp-cert-media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 95, 70, 0.35);
  pointer-events: none; /* Optional: allows clicks to pass through */
}
.pp-cert-check {
  position: absolute;
  right: 40%;
  top: 50%;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  z-index: 2;
}
.pp-cert-footer {
  background: #032220;
  color: #fff;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-cert-title {
  height: 36px;
  font-size: 20px;
  font-weight: 700;
  color: #f2f2f2;
  font-family: "Libre Franklin", Sans-serif;
}
.pp-cert-sub {
  color: #f2f2f2;
  font-size: 14px;
  font-weight: normal;
}
.pp-cert-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 6px;
}
.pp-btn {
  background: #fc5c3a;
  color: #f2f2f2;
  padding: 3px 32px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.pp-btn:hover {
  background: #fc5c3a98;
  color: #fff;
}
.pp-btn.-secondary {
  background: #e5e7eb;
  color: #111;
}
.pp-cert-share {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  opacity: 0.95;
}
.pp-share-label {
  color: #f2f2f2;
}
.pp-share-in {
  color: #0b3f3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #fff;
  font-weight: 800;
}

/* Saved Courses */
.pp-saved-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 24px;
}
.pp-course-card {
  position: relative;
  border: 2px solid #77767654;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.pp-course-media {
  line-height: 0;
  position: relative;
  overflow: hidden;
}
.pp-course-media img,
.pp-course-img {
  width: 100%;
  height: auto;
  display: block;
}
.pp-course-img.-ph {
  background: #0b3f3a;
  aspect-ratio: 16/9;
}
.pp-course-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 45px 24px 26px;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 0%) 0%,
    #032220 18%,
    #032220 50%,
    #032220 78%,
    #032220 100%
  );
}
.pp-course-chip {
  display: inline-block;
  background: #6e6a5b;
  color: #f2f2f2;
  font-weight: 500;
  font-size: 13px;
  padding: 1px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.25);
  font-family: "Libre Franklin", Sans-serif;
}
.pp-course-title {
  margin: 6px 0 8px;
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  font-size: 15px;
}
.pp-course-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #e9f0ef;
  opacity: 0.95;
}
.pp-course-sep {
  opacity: 0.45;
  margin: 0 6px;
}
.pp-course-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.66);
  padding: 14px 24px;
  font-weight: normal;
  font-size: 16px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  font-family: "Libre Franklin", Sans-serif;
}
.pp-course-btn:hover {
  border-color: #fff;
  color: #032220;
  background: #fff;
}

/* Optional: horizontal scroll look */
.pp-saved-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.pp-course-card {
  min-height: 380px;
  min-width: 343px;
  max-height: 380px;
  max-width: 343px;
}

.pp-btn-profile {
  background: #f4945c;
  color: #144a46;
  padding: 3px 13px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.pp-btn-profile:hover {
  background: #f4945c;
  color: #fff;
}

/* font */
.elementor-shortcode {
  font-family: "Libre Franklin", Sans-serif !important;
}
.pp-counter-num,
.pp-donut-number,
.pp-big {
  font-family: "DM Mono", monospace !important;
}

.pp-course-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* Cert track arrows overlay behavior */
.pp-cert-track-wrapper {
  position: relative;
  overflow: hidden;
}
.pp-cert-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.pp-cert-track::-webkit-scrollbar {
  display: none;
}
.pp-cert-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #fff78d;
  border: 1px solid #fff78d;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease, background 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.pp-cert-arrow-left {
  left: 7px;
}
.pp-cert-arrow-right {
  right: 7px;
}
.pp-cert-track-wrapper.show-left .pp-cert-arrow-left,
.pp-cert-track-wrapper.show-right .pp-cert-arrow-right {
  opacity: 1;
  pointer-events: auto;
}

/* Saved slider arrows */
.pp-saved-track-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}
.pp-saved-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 26px;
  scrollbar-width: none;
}
.pp-saved-track::-webkit-scrollbar {
  display: none;
}
.pp-saved-track,
.pp-course-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pp-saved-track,
.pp-course-card:hover {
  transform: scale(1.05);
}

.pp-saved-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #fff78d;
  border: 1px solid #fff78d;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.pp-saved-arrow-left {
  left: 7px;
}
.pp-saved-arrow-right {
  right: 7px;
}
.pp-saved-track-wrapper.show-left .pp-saved-arrow-left,
.pp-saved-track-wrapper.show-right .pp-saved-arrow-right {
  opacity: 1;
  pointer-events: auto;
}

/* Avatar control minimal (the detailed styles were inline; we keep class names) */
.pp-avatar-ctl {
  margin: 8px 0;
  position: absolute;
  top: 4px;
  right: 4px;
}
.pp-avatar-ctl.is-gravatar {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.propel-avatar-btn {
  background: transparent;
  color: #f2f2f2;
  border: none;
  padding: 3px 13px;
  cursor: pointer;
  font-size: 13px;
  font-family: "Libre Franklin", sans-serif;
  transition: all 0.25s;
  font-weight: 500;
}
.propel-avatar-btn:hover {
  color: #f4945c;
}
.propel-avatar-btn img.em-p {
  width: 20px;
  height: 20px;
  transition: all 0.25s;
}

.propel-avatar-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 51, 48, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.propel-avatar-modal.active {
  display: flex;
  animation: fadeIn 0.25s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.propel-avatar-modal-content {
  background: #f2f2f2;
  padding: 28px 26px;
  border-radius: 0;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #063330;
  border: 1px solid #dcdcdc;
  font-family: "Libre Franklin", sans-serif;
}
.propel-avatar-modal h3 {
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 24px;
  font-family: "Libre Franklin", Sans-serif !important;
}
.propel-avatar-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.propel-avatar-option {
  width: 80px;
  height: 80px;
  cursor: pointer;
  border: 3px solid transparent;
  background: #fff;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.propel-avatar-option:hover {
  transform: scale(1.06);
  box-shadow: 0 0 6px rgba(6, 51, 48, 0.3);
}
.propel-avatar-option.active {
  border-color: #f08710;
  box-shadow: 0 0 6px rgba(240, 135, 16, 0.6);
}
.propel-avatar-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.propel-avatar-submit,
.propel-avatar-cancel {
  padding: 8px 20px;
  font-weight: 500;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 14px;
}
.propel-avatar-submit {
  background: #f4945c;
  color: #fff;
}
.propel-avatar-submit:hover {
  background: #f4945c87;
}
.propel-avatar-cancel {
  background: #bfbfbf;
  color: #063330;
}
.propel-avatar-cancel:hover {
  background: #a0a0a0;
}
.pp-avatar {
  position: relative;
  display: inline-block;
}
.pp-avatar img {
  width: 135px;
}

/* === FIX: Avatar Control Positioning === */

/* Common container for avatar + control */
.pp-avatar-contener {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper for the edit button + text */
.pp-avatar-ctl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none; /* let clicks pass except on the button */
}

/* Button itself */
.propel-avatar-btn {
  pointer-events: all; /* make the button clickable */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Button image */
.propel-avatar-btn img.em-p {
  width: 24px;
  height: 24px;
  transition: filter 0.2s ease;
}
.propel-avatar-btn:hover img.em-p {
  filter: brightness(0) saturate(100%) invert(65%) sepia(57%) saturate(705%)
          hue-rotate(332deg) brightness(101%) contrast(98%);
}

/* --- STATE 1: is-gravatar (text + button both visible) --- */
.pp-avatar-ctl.is-gravatar {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.pp-avatar-ctl.is-gravatar .propel-avatar-btn {
  position: static;
  transform: none;
  margin-bottom: 6px;
}
.pp-avatar-ctl.is-gravatar .pp-avatar-text {
  display: block;
  color: #254d4a;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

/* --- STATE 2: button only --- */
.pp-avatar-ctl:not(.is-gravatar) .pp-avatar-text {
  display: none;
}
.pp-avatar-ctl:not(.is-gravatar) .propel-avatar-btn {
  position: absolute;
  top: 4px;
  right: 4px;
}

