/* =========================================================
   PDP Modules – production CSS
   Keeps Bootstrap column widths from the HTML (col-lg-5 / col-lg-7).
   This file should replace css/pdp-modules.css.
   ========================================================= */

:root {
  --pdp-purple: #b12079;
  --pdp-ink: #171940;
  --pdp-muted: #555;
  --pdp-line: rgba(23, 25, 64, .18);
}

/* ---------- Print / Save PDF ---------- */
.pdp-print-actions {
  display: flex;
  justify-content: center;
  margin: .25rem 0 1.5rem !important;
}

.framework-print-btn,
.pdp-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(51, 142, 204, .35);
  background: #fff;
  color: var(--pdp-ink);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: "Inter", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(36, 79, 175, .10);
}

.framework-print-btn:hover,
.pdp-print-btn:hover {
  background: rgba(51, 142, 204, .08);
  color: var(--pdp-ink);
}

/* ---------- Main two-column layout ---------- */
.pdp-framework-row {
  margin-top: 1.75rem;
}

.pdp-framework-sidebar,
#module-intro-panel,
.module-intro-panel,
.module-overview-card,
.pdp-overview-card {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  box-sizing: border-box;
}

.pdp-framework-sidebar {
  padding: 0 !important;
}

.pdp-content-column {
  border-left: 1px solid var(--pdp-line);
  padding-left: 28px !important;
}

@media (min-width: 992px) {
  .pdp-framework-sidebar {
    padding-right: 46px !important;
  }

  #module-intro-panel,
  .module-intro-panel,
  .module-overview-card,
  .pdp-overview-card,
  .module-intro-md,
  .module-intro-text,
  .module-overview-card p,
  #module-intro-panel p,
  #module-intro-panel .module-intro-text {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .pdp-framework-sidebar {
    padding-right: 0 !important;
  }

  .pdp-content-column {
    border-left: 0;
    border-top: 1px solid var(--pdp-line);
    padding-left: 12px !important;
    padding-top: 28px;
    margin-top: 28px;
  }
}

/* ---------- Right top module selector ---------- */
.pdp-module-topbar {
  display: flex;
  justify-content: flex-end !important;
  align-items: center;
  gap: 10px !important;
  margin: 0 0 24px;
  font-family: "Inter", "Noto Sans", sans-serif;
}

.pdp-module-topbar-label {
  font-weight: 700;
  color: #666;
  font-size: 1.05rem;
}

.pdp-module-circles {
  display: flex;
  align-items: center;
  gap: 7px !important;
  flex-wrap: nowrap !important;
}

.pdp-module-circle {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--module-color, #666) !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.02rem !important;
  line-height: 1;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  cursor: pointer;
}

.pdp-module-circle:hover {
  text-decoration: underline;
}

.pdp-module-circle.active {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 50% !important;
  background: var(--module-color, #666) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(23, 25, 64, .18) !important;
}

.pdp-module-circle-sep {
  color: var(--pdp-purple) !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  opacity: .9 !important;
  transform: scaleX(.55);
  display: inline-block;
}

@media (max-width: 991.98px) {
  .pdp-module-topbar {
    justify-content: flex-start !important;
  }

  .pdp-module-circles {
    flex-wrap: wrap !important;
  }

  .pdp-module-circle {
    font-size: .98rem !important;
  }

  .pdp-module-circle.active {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
}

/* ---------- Left SVG / legend ---------- */
.module-box-header {
  margin-bottom: 12px;
}

#pdp-box-wrapper {
  margin: 14px 0 18px;
}

#pdpBoxObj {
  display: block;
  width: 100%;
}

.pdp-reset-center {
  display: block !important;
  margin: 14px auto 16px !important;
}

.pdp-module-legend {
  display: grid;
  gap: 0 !important;
  margin-top: 8px !important;
  align-items: start;
}

.pdp-module-legend-item {
  position: relative !important;
  display: grid;
  grid-template-columns: 34px 1fr !important;
  align-items: center;
  gap: 8px !important;
  width: 100%;
  min-height: 38px !important;
  padding: 6px 0 !important;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  background: transparent;
  color: #333;
  text-align: left;
  cursor: pointer;
}

.pdp-module-legend-code {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--module-color, #666) !important;
  display: inline-flex;
  justify-content: flex-start !important;
  align-items: center;
  font-weight: 900 !important;
  font-size: .92rem !important;
  white-space: nowrap !important;
}

.pdp-module-legend-title {
  font-size: .91rem !important;
  line-height: 1.22 !important;
  font-weight: 500;
}

.pdp-module-legend-item.active .pdp-module-legend-title {
  font-weight: 800;
}

.pdp-module-legend-pointer {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  color: var(--pdp-purple);
  font-size: 1.05rem;
  line-height: 1;
}

.pdp-module-legend-item.active .pdp-module-legend-pointer {
  display: inline-block;
}

/* Disable older generated pseudo-hand if it exists in cache/older CSS. */
.pdp-module-legend-item.active::before {
  content: none !important;
  display: none !important;
}

/* ---------- Overview / module intro content ---------- */
#module-intro-panel,
#module-intro-panel .pdp-overview-card,
#module-intro-panel .module-overview-card,
#module-intro-panel .module-intro-md,
#module-intro-panel .module-intro-text {
  width: 100% !important;
  max-width: none !important;
}

#module-intro-panel .module-overview-card p,
#module-intro-panel .module-intro-text,
#module-intro-panel .pdp-overview-card p,
#module-intro-panel .pdp-overview-card li {
  max-width: none !important;
}

.module-intro-image {
  max-width: 100%;
  height: auto;
}

/* ---------- Bottom start/login action ---------- */
.pdp-module-start-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end !important;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 30px;
}

.pdp-login-register-note {
  max-width: none !important;
  margin: 0;
  color: var(--pdp-muted);
  font-size: .96rem;
  line-height: 1.45;
  text-align: right !important;
  white-space: nowrap;
}

.pdp-start-module-btn {
  min-width: 230px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  background: var(--pdp-purple) !important;
  color: #fff !important;
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap !important;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(23, 25, 64, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.pdp-start-module-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(23, 25, 64, .22);
}

@media (max-width: 991.98px) {
  .pdp-module-start-wrap {
    align-items: flex-start !important;
  }

  .pdp-login-register-note {
    text-align: left !important;
  }
}

@media (max-width: 575.98px) {
  .pdp-login-register-note {
    white-space: normal;
  }

  .pdp-start-module-btn {
    width: 100%;
    min-width: 0;
  }
}

/* μικρό χεράκι αριστερά στο ενεργό module */
.pdp-module-legend-pointer {
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  color: #b12079;
  font-size: 2rem;
  line-height: 1;
}

.pdp-module-legend-item.active .pdp-module-legend-pointer {
  display: inline-block;
}


/* =========================================================
   PDP Progress popup + printable certificate
   ========================================================= */
body.pdp-progress-popup-open {
  overflow: hidden;
}

.pdp-progress-open-btn {
  white-space: nowrap;
}

.pdp-progress-popup[hidden] {
  display: none !important;
}

.pdp-progress-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  font-family: "Inter", "Noto Sans", sans-serif;
}

.pdp-progress-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 26, .58);
  backdrop-filter: blur(4px);
}

.pdp-progress-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  color: var(--pdp-ink, #171940);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.pdp-progress-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 42px) 20px;
  border-bottom: 1px solid rgba(23, 25, 64, .10);
  background: rgba(255, 255, 255, .96);
}

.pdp-progress-eyebrow {
  margin: 0 0 6px;
  color: var(--pdp-purple, #b12079);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdp-progress-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 900;
  color: var(--pdp-ink, #171940);
}

.pdp-progress-intro {
  margin: 8px 0 0;
  max-width: 62ch;
  color: #5f6370;
  line-height: 1.5;
}

.pdp-progress-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 25, 64, .14);
  border-radius: 50%;
  background: #fff;
  color: var(--pdp-ink, #171940);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.pdp-progress-close:hover,
.pdp-progress-close:focus-visible {
  background: rgba(177, 32, 121, .06);
  outline: 3px solid rgba(177, 32, 121, .18);
}

.pdp-certificate-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px clamp(20px, 4vw, 42px) 10px;
}

.pdp-certificate-profile label {
  display: block;
  margin: 0 0 6px;
  font-weight: 850;
  color: var(--pdp-ink, #171940);
}

.pdp-certificate-profile input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(23, 25, 64, .18);
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  background: #fff;
  color: var(--pdp-ink, #171940);
}

.pdp-certificate-profile input:focus {
  border-color: var(--pdp-purple, #b12079);
  outline: 3px solid rgba(177, 32, 121, .15);
}

.pdp-certificate-error {
  margin: 6px clamp(20px, 4vw, 42px) 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(142, 37, 37, .08);
  color: #8e2525;
  font-weight: 750;
}

.pdp-progress-modules-list {
  display: grid;
  gap: 14px;
  padding: 18px clamp(20px, 4vw, 42px) 36px;
}

.pdp-progress-loading {
  padding: 28px;
  border-radius: 18px;
  background: rgba(23, 25, 64, .04);
  text-align: center;
  font-weight: 800;
}

.pdp-progress-module-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(23, 25, 64, .12);
  border-left: 6px solid var(--pdp-progress-color, #171940);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 25, 64, .06);
}

.pdp-progress-module-card.is-highlighted {
  box-shadow: 0 0 0 4px rgba(177, 32, 121, .14), 0 18px 38px rgba(23, 25, 64, .10);
}

.pdp-progress-module-card.is-completed {
  background: linear-gradient(180deg, rgba(33, 85, 0, .045), #fff 56%);
}

.pdp-progress-module-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.pdp-progress-module-code {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--pdp-progress-color, #171940);
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(23, 25, 64, .16);
}

.pdp-progress-module-info h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--pdp-ink, #171940);
}

.pdp-progress-module-info p {
  margin: 9px 0 0;
  color: #5f6370;
  font-size: .92rem;
  font-weight: 700;
}

.pdp-progress-bar-line {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 25, 64, .10);
}

.pdp-progress-bar-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pdp-progress-color, #171940);
}

.pdp-progress-module-actions {
  display: flex;
  justify-content: flex-end;
}

.pdp-certificate-btn,
.pdp-continue-btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: .88rem;
  font-weight: 900;
  cursor: pointer;
}

.pdp-certificate-btn {
  background: var(--pdp-progress-color, #171940);
  color: #fff;
}

.pdp-continue-btn {
  background: rgba(23, 25, 64, .08);
  color: var(--pdp-ink, #171940);
}

.pdp-certificate-btn:hover,
.pdp-certificate-btn:focus-visible,
.pdp-continue-btn:hover,
.pdp-continue-btn:focus-visible {
  filter: brightness(.96);
  outline: 3px solid rgba(23, 25, 64, .14);
}

#pdpCertificatePrintRoot {
  display: none;
}

.pdp-certificate-page {
  min-height: 260mm;
  display: grid;
  place-items: center;
  padding: 18mm;
  font-family: "Inter", "Noto Sans", sans-serif;
  color: #171940;
  background: #fff;
}

.pdp-certificate-frame {
  width: 100%;
  min-height: 215mm;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24mm;
  border: 3px solid var(--pdp-certificate-color, #171940);
  outline: 1px solid rgba(23, 25, 64, .18);
  outline-offset: -10mm;
  text-align: center;
}

.pdp-certificate-kicker {
  margin: 0 0 10mm;
  color: var(--pdp-certificate-color, #171940);
  font-size: 10pt;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pdp-certificate-frame h1 {
  margin: 0 0 12mm;
  color: #171940;
  font-size: 34pt;
  font-weight: 950;
  line-height: 1.1;
}

.pdp-certificate-statement {
  margin: 0 0 4mm;
  color: #555;
  font-size: 13pt;
}

.pdp-certificate-frame h2 {
  margin: 0;
  color: var(--pdp-certificate-color, #171940);
  font-size: 26pt;
  font-weight: 950;
  line-height: 1.15;
}

.pdp-certificate-specialty {
  margin: 4mm 0 12mm;
  color: #171940;
  font-size: 13pt;
}

.pdp-certificate-body {
  max-width: 150mm;
  margin: 0 auto 16mm;
  color: #333;
  font-size: 15pt;
  line-height: 1.55;
}

.pdp-certificate-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12mm;
  max-width: 150mm;
  margin: 0 auto 18mm;
}

.pdp-certificate-meta div {
  padding-top: 5mm;
  border-top: 1px solid rgba(23, 25, 64, .24);
}

.pdp-certificate-meta span,
.pdp-certificate-footer span {
  display: block;
  color: #666;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pdp-certificate-meta strong {
  display: block;
  margin-top: 2mm;
  color: #171940;
  font-size: 12pt;
}

.pdp-certificate-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10mm;
  margin-top: auto;
  text-align: left;
}

.pdp-certificate-footer strong {
  display: block;
  color: #171940;
  font-size: 12pt;
}

.pdp-certificate-seal {
  display: grid;
  place-items: center;
  width: 25mm;
  height: 25mm;
  border-radius: 50%;
  background: var(--pdp-certificate-color, #171940);
  color: #fff;
  font-size: 13pt;
  font-weight: 950;
}

@media (max-width: 767.98px) {
  .pdp-progress-dialog {
    max-height: 92vh;
    border-radius: 22px;
  }

  .pdp-progress-header,
  .pdp-progress-module-card,
  .pdp-progress-module-main,
  .pdp-certificate-profile {
    grid-template-columns: 1fr;
  }

  .pdp-progress-header {
    display: grid;
  }

  .pdp-progress-close {
    position: absolute;
    top: 16px;
    right: 16px;
  }

  .pdp-progress-module-actions {
    justify-content: flex-start;
  }
}

@media print {
  body.pdp-certificate-printing {
    background: #fff !important;
  }

  body.pdp-certificate-printing > *:not(#pdpCertificatePrintRoot) {
    display: none !important;
  }

  body.pdp-certificate-printing #pdpCertificatePrintRoot {
    display: block !important;
  }

  body.pdp-certificate-printing #pdpCertificatePrintRoot,
  body.pdp-certificate-printing .pdp-certificate-page {
    width: 100% !important;
    min-height: auto !important;
  }

  @page {
    size: A4 portrait;
    margin: 0;
  }
}


/* ---------- OralText (hidden markdown source used by audio + "View Audio text" pop-up window) ---------- */
.pdp-oral-text-panel[hidden],
.pdp-oral-text-source[hidden] {
  display: none !important;
}

.pdp-oral-text-body {
  font-family: "Inter", "Noto Sans", sans-serif;
  color: var(--pdp-ink, #171940);
  font-size: .84rem;
  line-height: 1.5;
}

/* Πιο δυνατοί selectors ώστε να υπερισχύουν τυχόν κανόνων του βασικού CSS
   (π.χ. #content-area p) που δίνουν μεγαλύτερο μέγεθος στα p/li μέσα στο panel. */
#content-area .pdp-oral-text-body,
#content-area .pdp-oral-text-body p,
#content-area .pdp-oral-text-body li,
.pdp-oral-text-body p,
.pdp-oral-text-body li,
.pdp-oral-float-body,
.pdp-oral-float-body p,
.pdp-oral-float-body li {
  font-size: .84rem !important;
  line-height: 1.5 !important;
}

.pdp-oral-text-body p:last-child,
.pdp-oral-text-body ul:last-child,
.pdp-oral-text-body ol:last-child {
  margin-bottom: 0;
}

/* ---------- Floating draggable "Audio text" panel ---------- */
.pdp-oral-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  width: min(380px, calc(100vw - 32px));
  height: min(420px, calc(100vh - 32px));
  min-width: 260px;
  min-height: 180px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(23, 25, 64, .14);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(23, 25, 64, .28);
  overflow: hidden;
  resize: both;
}

.pdp-oral-float[hidden] {
  display: none !important;
}

.pdp-oral-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid rgba(23, 25, 64, .12);
  background: rgba(177, 32, 121, .05);
  cursor: move;
  user-select: none;
  touch-action: none;
  flex: 0 0 auto;
}

.pdp-oral-float-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pdp-oral-float-title {
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pdp-purple, #b12079);
}

.pdp-oral-float-subtitle {
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--pdp-ink, #171940);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-oral-float-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--pdp-ink, #171940);
  cursor: pointer;
  padding: .1rem .4rem;
  border-radius: 6px;
  flex: 0 0 auto;
}

.pdp-oral-float-close:hover {
  background: rgba(23, 25, 64, .08);
}

.pdp-oral-float-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: .9rem 1rem 1.1rem;
  font-family: "Inter", "Noto Sans", sans-serif;
  color: var(--pdp-ink, #171940);
  font-size: .84rem;
  line-height: 1.5;
}

.pdp-oral-float-body p:last-child,
.pdp-oral-float-body ul:last-child,
.pdp-oral-float-body ol:last-child {
  margin-bottom: 0;
}

/* On phones: pin it as a bottom sheet across the full width */
@media (max-width: 575.98px) {
  .pdp-oral-float {
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: 8px !important;
    width: auto !important;
    height: 45vh !important;
    resize: none;
  }
}

/* ---------- Reflection: "you already answered this in another language" note ---------- */
.reflection-field {
  position: relative;
}

.reflection-other-language-note {
  margin: 0 0 .65rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(var(--pdp-theme-color-rgb, 23, 25, 64), .22);
  border-left: 3px solid var(--pdp-theme-color, #2E5FA3);
  border-radius: 12px;
  background: var(--pdp-theme-soft, rgba(23, 25, 64, .04));
}

.reflection-other-language-note p {
  margin: 0 0 .55rem;
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: .84rem;
  font-weight: 700;
  color: var(--pdp-ink, #171940);
}

.reflection-other-language-preview {
  margin: 0 0 .7rem;
  padding: .6rem .8rem;
  border: 0;
  border-left: 2px solid rgba(var(--pdp-theme-color-rgb, 23, 25, 64), .35);
  border-radius: 8px;
  background: #fff;
  color: var(--pdp-muted, #555);
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: .84rem;
  font-style: italic;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 8.5em;
  overflow-y: auto;
}

.reflection-other-language-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.reflection-switch-language-btn,
.reflection-edit-in-language-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border: 1px solid var(--pdp-theme-color, #2E5FA3);
  border-radius: 999px;
  background: #fff;
  color: var(--pdp-theme-color, #2E5FA3);
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.reflection-switch-language-btn:hover,
.reflection-switch-language-btn:focus-visible,
.reflection-edit-in-language-btn:hover,
.reflection-edit-in-language-btn:focus-visible {
  background: var(--pdp-theme-color, #2E5FA3);
  color: #fff;
  box-shadow: 0 6px 14px rgba(var(--pdp-theme-color-rgb, 23, 25, 64), .22);
}

.reflection-switch-language-btn:focus-visible,
.reflection-edit-in-language-btn:focus-visible {
  outline: 2px solid var(--pdp-theme-color, #2E5FA3);
  outline-offset: 2px;
}

.reflection-edit-in-language-btn {
  border-style: dashed;
}

/* Keep the textarea out of the way while a same-content note (from another
   language) is being shown, so users don't see two boxes for one answer.
   The "Edit in this language" button removes this class again. */
.reflection-field textarea.reflection-textarea.is-collapsed {
  display: none;
}

.reflection-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .55rem;
}

.reflection-edit-actions.is-collapsed {
  display: none;
}

.reflection-confirm-btn,
.reflection-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.reflection-confirm-btn {
  border: 1px solid var(--pdp-theme-color, #2E5FA3);
  background: var(--pdp-theme-color, #2E5FA3);
  color: #fff;
}

.reflection-confirm-btn:hover,
.reflection-confirm-btn:focus-visible {
  box-shadow: 0 6px 14px rgba(var(--pdp-theme-color-rgb, 23, 25, 64), .22);
}

.reflection-cancel-btn {
  border: 1px solid rgba(var(--pdp-theme-color-rgb, 23, 25, 64), .3);
  background: #fff;
  color: var(--pdp-muted, #555);
}

.reflection-cancel-btn:hover,
.reflection-cancel-btn:focus-visible {
  background: rgba(var(--pdp-theme-color-rgb, 23, 25, 64), .06);
  color: var(--pdp-ink, #171940);
}

.reflection-confirm-btn:focus-visible,
.reflection-cancel-btn:focus-visible {
  outline: 2px solid var(--pdp-theme-color, #2E5FA3);
  outline-offset: 2px;
}

@media print {
  .reflection-other-language-note {
    display: none !important;
  }

  .reflection-edit-actions {
    display: none !important;
  }

  /* Printed summaries should still show the textarea box even if it was
     collapsed on screen in favor of the other-language note. */
  .reflection-field textarea.reflection-textarea.is-collapsed {
    display: block !important;
  }
}

/* =========================================================
   Migrated from inline <style> block in modules-PDP-learning.html
   ========================================================= */
.pdp-language-selector {
  margin: 1.25rem 0 2rem !important;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(23,25,64,.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23,25,64,.06);
}

.pdp-language-selector label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 700;
  color: #171940;
}

.pdp-language-selector .language-help {
  margin: 0 0 .75rem;
  font-size: .95rem;
  color: #555;
}

.pdp-language-selector select {
  width: 100%;
  max-width: 420px;
  padding: .75rem 1rem;
  border: 1px solid rgba(23,25,64,.25);
  border-radius: 10px;
  background-color: #fff;
  font-weight: 600;
}

.pdp-box-caption {
  margin: .75rem 0 0;
  font-size: .95rem;
  line-height: 1.45;
  color: #555;
  text-align: center;
}


/* PDP split learning page */
.pdp-learning-page .pdp-module-menu-heading {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
  color: #171940;
}

.pdp-learning-page .pdp-framework-row,
.pdp-learning-page .pdp-content-column {
  width: 100%;
  min-width: 0;
}

/* Clean lesson workspace: no M1/M2 top module strip. Navigation lives in Contents. */
.pdp-learning-page .pdp-module-topbar {
  display: none !important;
}

.pdp-learning-page .pdp-learning-shell {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.pdp-learning-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.pdp-learning-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pdp-learning-toolbar-btn,
.pdp-learning-sidebar-close {
  border: 1px solid rgba(23,25,64,.14);
  background: #fff;
  color: #171940;
  border-radius: 999px;
  font-family: "Inter", "Noto Sans", sans-serif;
  font-weight: 650;
  font-size: .92rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(23,25,64,.05);
  transition: box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.pdp-learning-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
}

.pdp-learning-toolbar-btn:hover,
.pdp-learning-sidebar-close:hover {
  background: rgba(var(--pdp-theme-color-rgb, 177,32,121), .06);
  border-color: rgba(var(--pdp-theme-color-rgb, 177,32,121), .28);
  box-shadow: 0 4px 10px rgba(23,25,64,.06);
}

.pdp-learning-shell.menu-open #pdpLearningMenuToggle,
.pdp-learning-shell.is-focus-mode #pdpLearningFocusToggle {
  background: rgba(23,25,64,.08);
  border-color: rgba(23,25,64,.3);
  color: #171940;
}

.pdp-learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 30px;
  align-items: start;
}

.pdp-learning-shell.menu-open .pdp-learning-layout {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.pdp-learning-sidebar {
  display: none;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 16px !important;
  border: 1px solid rgba(23,25,64,.12) !important;
  border-radius: 18px;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(23,25,64,.08) !important;
}

.pdp-learning-shell.menu-open .pdp-learning-sidebar {
  display: block;
}

.pdp-learning-sidebar-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  padding: 16px 0 10px;
  border-bottom: 1px solid rgba(23,25,64,.10);
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
}

.pdp-learning-sidebar-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdp-learning-sidebar-head .pdp-learning-progress {
  margin: 0;
}

.pdp-learning-progress-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
  font-family: "Inter", "Noto Sans", sans-serif;
}

.pdp-learning-progress-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  color: #171940;
}

.pdp-learning-progress-pct {
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 600;
  color: var(--pdp-muted);
  white-space: nowrap;
}

.pdp-learning-progress-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(23, 25, 64, .08);
  overflow: hidden;
}

.pdp-learning-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .25s ease;
}

.pdp-learning-sidebar-close {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: none;
}

.pdp-learning-content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-left: 0 !important;
  padding-left: 0 !important;
  min-width: 0;
}

.pdp-learning-shell.menu-open .pdp-learning-content {
  max-width: 880px;
}

.pdp-learning-page #lesson-area .main-content {
  width: 100%;
}

.pdp-learning-backdrop {
  display: none;
}

/* Top-align sidebar codes (M1, M2, section numbers) with the first line of long titles. */
.pdp-learning-page #module-sections .sidebar-module-title {
  align-items: start !important;
}

.pdp-learning-page #module-sections .module-title-left {
  align-items: flex-start !important;
}

.pdp-learning-page #module-sections .module-dot {
  margin-top: .15em;
  /* Σβήνει το στρογγυλό bullet που έρχεται από το βασικό stylesheet,
     ώστε να φαίνεται μόνο το SVG σχήμα του module. */
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: flex-start;
  flex: 0 0 auto;
}

.pdp-learning-page #module-sections .module-dot::before,
.pdp-learning-page #module-sections .module-dot::after {
  content: none !important;
}

.pdp-learning-page #module-sections .module-dot svg {
  width: 16px;
  height: 18px;
  display: block;
}

.pdp-learning-page #module-sections .module-shape-icon {
  margin-top: .1em;
}

.pdp-learning-page #module-sections .module-number {
  align-self: flex-start !important;
  line-height: 1.15;
  padding-top: .02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pdp-learning-page #module-sections .module-title-text,
.pdp-learning-page #module-sections .section-text,
.pdp-learning-page #module-sections .subsection-text {
  min-width: 0;
}

.pdp-learning-page #module-sections .module-title-text {
  display: block;
  line-height: 1.15;
}

.pdp-learning-page #module-sections .module-toggle,
.pdp-learning-page #module-sections .section-toggle {
  margin-top: .06em;
}

.pdp-learning-page #module-sections .section-number,
.pdp-learning-page #module-sections .subsection-number {
  align-self: start;
  line-height: 1.15;
}

@media (min-width: 992px) {
  .pdp-learning-sidebar {
    position: static;   /* ή σβήσε τις 2 γραμμές: position + top */
    height: auto;
    max-height: none;
    overflow-y: visible;
    overflow-x: visible;
    scrollbar-gutter: auto;
  }
  ...
}
  .pdp-learning-page #module-sections .module-title-text,
  .pdp-learning-page #module-sections .section-text,
  .pdp-learning-page #module-sections .subsection-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Module selector strip: same visual language as the overview selector. */
.pdp-mobile-module-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 44px;
  padding: 4px 0 46px;
  border-bottom: 1px solid rgba(23,25,64,.10);
  font-family: "Inter", "Noto Sans", sans-serif;
  position: relative;
  z-index: 2;
}

.pdp-mobile-module-strip .pdp-module-topbar-label {
  font-weight: 800;
  color: #666;
  font-size: 1.05rem;
  line-height: 1;
  margin-right: 5px;
}

.pdp-mobile-module-chip,
.pdp-mobile-module-strip .pdp-module-circle {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--module-color, #666) !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: 1.02rem !important;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.pdp-mobile-module-chip:hover,
.pdp-mobile-module-strip .pdp-module-circle:hover {
  text-decoration: underline;
}

.pdp-mobile-module-chip.is-active,
.pdp-mobile-module-chip.active,
.pdp-mobile-module-strip .pdp-module-circle.active {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--module-color, #666) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(23,25,64,.18) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center;
}

.pdp-mobile-module-strip .pdp-module-circle-sep {
  color: var(--pdp-purple, #b12079) !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  opacity: .9 !important;
  transform: scaleX(.55);
  display: inline-block;
}

.pdp-mobile-module-chip:focus-visible,
.pdp-mobile-module-strip .pdp-module-circle:focus-visible {
  outline: 3px solid rgba(var(--pdp-theme-color-rgb), .24);
  outline-offset: 3px;
}

/* Current section marker below the active module circle. */
.pdp-mobile-module-strip .pdp-module-circle.active[data-current-section] {
  position: relative;
}

.pdp-mobile-module-strip .pdp-module-circle.active[data-current-section]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: var(--module-color, var(--pdp-theme-color));
  transform: translateX(-50%);
}

.pdp-mobile-module-strip .pdp-module-circle.active[data-current-section]::after {
  content: attr(data-current-section);
  position: absolute;
  left: 50%;
  top: calc(100% + 22px);
  transform: translateX(-50%);
  min-width: 38px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(var(--pdp-theme-color-rgb), .08);
  border: 1px solid rgba(var(--pdp-theme-color-rgb), .18);
  color: var(--module-color, var(--pdp-theme-color));
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(23,25,64,.08);
  white-space: nowrap;
  z-index: 3;
}

@media (max-width: 991.98px) {
  .pdp-mobile-module-strip {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 50px;
    margin: 0 0 40px;
    scrollbar-width: thin;
  }

  .pdp-mobile-module-strip .pdp-module-topbar-label {
    font-size: .98rem;
  }

  .pdp-mobile-module-chip,
  .pdp-mobile-module-strip .pdp-module-circle {
    font-size: .98rem !important;
  }

  .pdp-mobile-module-chip.is-active,
  .pdp-mobile-module-chip.active,
  .pdp-mobile-module-strip .pdp-module-circle.active {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
}


/* Focus mode: video-like lesson window without site header/footer. */
body.pdp-learning-focus-mode {
  overflow: hidden;
}

.pdp-learning-shell.is-focus-mode {
  position: fixed;
  inset: 0;
  z-index: 9999;
  max-width: none;
  margin: 0;
  padding: 22px clamp(18px, 3vw, 42px) 32px;
  background: #fff;
  overflow-y: auto;
}

.pdp-learning-shell.is-focus-mode .pdp-learning-toolbar {
  position: sticky;
  top: -1px;
  z-index: 70;
  padding: 0 0 14px;
  background: linear-gradient(#fff 72%, rgba(255,255,255,.92));
}

.pdp-learning-shell.is-focus-mode .pdp-learning-layout {
  max-width: 1320px;
  margin: 0 auto;
}

.pdp-learning-shell.is-focus-mode .pdp-learning-content {
  max-width: 1180px;
}

.pdp-learning-shell.is-focus-mode.menu-open .pdp-learning-content {
  max-width: 960px;
}

.pdp-learning-shell.is-focus-mode .pdp-learning-sidebar {
  top: 86px;
  height: min(780px, calc(100vh - 120px));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.pdp-learning-shell.is-focus-mode #lesson-area .main-content {
  padding-bottom: 28px;
}


/* Desktop uses a controlled LMS-style scroll panel: tall enough to feel stable, but not so tall that it dominates the lesson. */

@media (max-width: 991.98px) {
  .pdp-learning-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 18px;
  }

  .pdp-learning-toolbar-group {
    flex: 0 1 auto;
    min-width: 0;
  }

  .pdp-learning-toolbar-group-focus {
    margin-left: auto;
    justify-content: flex-end;
  }

  .pdp-learning-toolbar-btn {
    padding: 10px 14px;
    font-size: .95rem;
    white-space: nowrap;
  }

  .pdp-learning-layout,
  .pdp-learning-shell.menu-open .pdp-learning-layout {
    display: block;
  }

  .pdp-learning-sidebar,
  .pdp-learning-shell.menu-open .pdp-learning-sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 360px);
    max-height: none;
    overflow-y: auto;
    padding: 0 18px 22px !important;
    background: #fff !important;
    border-radius: 0 18px 18px 0;
    box-shadow: 0 18px 60px rgba(23,25,64,.26) !important;
    z-index: 10050;
    transform: translateX(-105%);
    transition: transform .25s ease;
  }

  .pdp-learning-sidebar-head {
    padding-top: 22px;
  }

  .pdp-learning-shell.menu-open .pdp-learning-sidebar {
    transform: translateX(0);
  }

  .pdp-learning-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(23,25,64,.35);
    z-index: 10040;
  }

  body.pdp-learning-menu-open .pdp-learning-backdrop {
    display: block;
  }

  body.pdp-learning-menu-open {
    overflow: hidden;
  }

  .pdp-learning-content,
  .pdp-learning-shell.menu-open .pdp-learning-content,
  .pdp-learning-shell.is-focus-mode .pdp-learning-content,
  .pdp-learning-shell.is-focus-mode.menu-open .pdp-learning-content {
    max-width: 100%;
  }
}


/* Mobile focus mode: keep controls in their own row so they never overlap lesson images/diagrams. */
@media (max-width: 991.98px) {
  .pdp-learning-shell.is-focus-mode {
    padding: 14px 12px 24px;
  }

  .pdp-learning-shell.is-focus-mode .pdp-learning-toolbar {
    position: static !important;
    top: auto !important;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0 0 16px;
    padding: 0 0 12px;
    background: #fff;
    border-bottom: 1px solid rgba(23,25,64,.10);
    box-shadow: none;
  }

  .pdp-learning-shell.is-focus-mode .pdp-learning-toolbar-group {
    flex: 0 1 auto;
    min-width: 0;
  }

  .pdp-learning-shell.is-focus-mode .pdp-learning-toolbar-group:last-child {
    justify-content: flex-end;
  }

  .pdp-learning-shell.is-focus-mode .pdp-learning-toolbar-btn {
    width: auto;
    justify-content: center;
    padding: 10px 12px;
    font-size: .95rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .pdp-learning-shell.is-focus-mode .pdp-learning-layout,
  .pdp-learning-shell.is-focus-mode.menu-open .pdp-learning-layout {
    padding-top: 0;
  }

  .pdp-learning-shell.is-focus-mode #lesson-area .main-content {
    padding-top: 0;
  }
}

@media (max-width: 420px) {
  .pdp-learning-shell.is-focus-mode .pdp-learning-toolbar-btn {
    font-size: .88rem;
    padding: 9px 10px;
  }
}


/* Module identity header: uses PDP-box SVG colours/shapes to make each module feel distinct. */
.pdp-learning-shell {
  --pdp-theme-color: #2E5FA3;
  --pdp-theme-color-2: #4A80C4;
  --pdp-theme-color-rgb: 46, 95, 163;
  --pdp-theme-soft: rgba(46, 95, 163, .055);
}

/* Keep the sidebar's "current section/subsection" highlight, progress bar,
   and buttons in the same color as the active module's theme, so the
   sidebar and the lesson content always visually match. */
.pdp-learning-shell {
  --lesson-accent: var(--pdp-theme-color);
  --lesson-accent-strong: var(--pdp-theme-color);
  --lesson-accent-dark: var(--pdp-theme-color);
  --lesson-accent-bg: rgba(var(--pdp-theme-color-rgb), .08);
}

/* ...except the selected subsection's own text in the sidebar menu, which
   should always read in ink/black rather than the module's theme color. */
.pdp-learning-shell .sidebar-subsection.current .status,
.pdp-learning-shell .sidebar-subsection.current .subsection-number,
.pdp-learning-shell .sidebar-subsection.current .subsection-text {
  color: #171940 !important;
}

.pdp-learning-shell[data-module="module1"] {
  --pdp-theme-color: #1D7A6B;
  --pdp-theme-color-2: #2FA391;
  --pdp-theme-color-rgb: 29, 122, 107;
}

.pdp-learning-shell[data-module="module2"] {
  --pdp-theme-color: #A8631A;
  --pdp-theme-color-2: #E2922E;
  --pdp-theme-color-rgb: 168, 99, 26;
}

.pdp-learning-shell[data-module="module3"] {
  --pdp-theme-color: #A83246;
  --pdp-theme-color-2: #C9495F;
  --pdp-theme-color-rgb: 168, 50, 70;
}

.pdp-learning-shell[data-module="module4"] {
  --pdp-theme-color: #2E5FA3;
  --pdp-theme-color-2: #4A80C4;
  --pdp-theme-color-rgb: 46, 95, 163;
}

.pdp-learning-shell[data-module="module5"] {
  --pdp-theme-color: #4C7A29;
  --pdp-theme-color-2: #6E9C3E;
  --pdp-theme-color-rgb: 76, 122, 41;
}

.pdp-learning-shell[data-module="module6"] {
  --pdp-theme-color: #7B4A82;
  --pdp-theme-color-2: #9C64A6;
  --pdp-theme-color-rgb: 123, 74, 130;
}

.pdp-module-theme-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
  padding: 22px clamp(20px, 3vw, 34px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 14%, rgba(255,255,255,.36), transparent 34%),
    linear-gradient(135deg, var(--pdp-theme-color), var(--pdp-theme-color-2));
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(var(--pdp-theme-color-rgb), .18);
  isolation: isolate;
}

.pdp-module-theme-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  z-index: -1;
}

.pdp-module-theme-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.pdp-module-theme-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff !important;
  opacity: .82;
}

.pdp-module-theme-code {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: none;
  color: #fff !important;
}

.pdp-module-theme-title {
  margin: 0;
  max-width: 740px;
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.06;
  color: #fff !important;
}

.pdp-module-theme-subtitle {
  margin: 12px 0 0;
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255,255,255,.82) !important;
}

.pdp-module-theme-mark {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: clamp(96px, 15vw, 156px);
  height: clamp(78px, 12vw, 126px);
  display: grid;
  place-items: center;
  opacity: .95;
}

.pdp-module-theme-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,.22));
}

.pdp-module-theme-watermark {
  position: absolute;
  right: -32px;
  bottom: -42px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255,255,255,.11);
  z-index: -1;
}

.pdp-learning-shell #lesson-area .main-content {
  border-top: 6px solid var(--pdp-theme-color) !important;
  background:
    linear-gradient(180deg, rgba(var(--pdp-theme-color-rgb), .045), rgba(255,255,255,0) 180px),
    #fff;
  box-shadow: 0 18px 42px rgba(var(--pdp-theme-color-rgb), .08);
}

.pdp-learning-shell #progress-fill {
  background: var(--pdp-theme-color) !important;
}

.pdp-learning-shell .pdp-learning-toolbar-btn:focus-visible,
.pdp-learning-shell .pdp-mobile-module-chip:focus-visible,
.pdp-learning-shell .pdp-learning-sidebar-close:focus-visible {
  outline: 3px solid rgba(var(--pdp-theme-color-rgb), .24);
  outline-offset: 2px;
}

.pdp-learning-shell .pdp-learning-toolbar-btn:hover,
.pdp-learning-shell .pdp-learning-sidebar-close:hover {
  background: rgba(var(--pdp-theme-color-rgb), .06);
}

.pdp-learning-shell.menu-open #pdpLearningMenuToggle,
.pdp-learning-shell.is-focus-mode #pdpLearningFocusToggle {
  background: rgba(var(--pdp-theme-color-rgb), .1);
  border-color: rgba(var(--pdp-theme-color-rgb), .4);
  color: var(--pdp-theme-color);
  box-shadow: none;
}

.pdp-learning-shell.is-focus-mode .pdp-module-theme-header {
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .pdp-module-theme-header {
    padding: 18px 18px;
    border-radius: 20px;
    gap: 12px;
  }

  .pdp-module-theme-eyebrow {
    font-size: .66rem;
  }

  .pdp-module-theme-title {
    font-size: clamp(1.3rem, 6vw, 1.85rem);
    line-height: 1.1;
  }

  .pdp-module-theme-subtitle {
    font-size: .9rem;
    line-height: 1.45;
  }

  .pdp-module-theme-mark {
    width: 78px;
    height: 66px;
    opacity: .88;
  }
}

@media (max-width: 520px) {
  .pdp-module-theme-header {
    align-items: flex-start;
  }

  .pdp-module-theme-mark {
    position: absolute;
    right: 12px;
    bottom: 8px;
    width: 82px;
    height: 68px;
    opacity: .22;
  }

  .pdp-module-theme-title,
  .pdp-module-theme-subtitle {
    max-width: calc(100% - 8px);
  }
}


/* Compact language control: keeps the module hero high and moves language selection to the right. */
.pdp-learning-intro-row {
  margin-top: clamp(-46px, -3vw, -22px);
}

.pdp-learning-page .pdp-language-selector-compact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 0;
  margin: 0 !important;
  padding: 7px 8px 7px 14px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(23,25,64,.07) !important;
}

.pdp-learning-page .pdp-language-selector-compact label {
  display: inline-flex;
  margin: 0 !important;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.pdp-learning-page .pdp-language-selector-compact .language-help {
  display: none !important;
}

.pdp-learning-page .pdp-language-selector-compact select {
  width: auto !important;
  min-width: 148px;
  max-width: 190px !important;
  padding: .48rem 2rem .48rem .8rem !important;
  border-radius: 999px !important;
  font-size: .88rem;
  line-height: 1.1;
}

.pdp-learning-toolbar-group-focus {
  margin-left: auto;
  justify-content: flex-end;
}

.pdp-learning-shell > .pdp-module-theme-header {
  margin-bottom: 14px;
}

@media (max-width: 991.98px) {
  .pdp-learning-intro-row {
    margin-top: -18px;
  }

  .pdp-learning-toolbar {
    align-items: flex-start;
  }

  .pdp-learning-page .pdp-language-selector-compact {
    order: 2;
    padding: 6px 7px 6px 10px !important;
  }

  .pdp-learning-page .pdp-language-selector-compact label {
    display: none !important;
  }

  .pdp-learning-page .pdp-language-selector-compact select {
    min-width: 118px;
    max-width: 132px !important;
    font-size: .82rem;
  }
}


/* Discreet PDP audio controls: compact text-to-speech layer inside the learning page. */
.pdp-learning-page .pdp-audio-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .35rem;
  flex-wrap: wrap;
  margin: .15rem 0 .85rem auto;
  padding: .32rem .42rem;
  border: 1px solid rgba(23,25,64,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: none;
  width: max-content;
  max-width: 100%;
}
.pdp-learning-page .pdp-audio-controls:hover,
.pdp-learning-page .pdp-audio-controls:focus-within {
  background: rgba(var(--pdp-theme-color-rgb, 23,25,64), .045);
  border-color: rgba(var(--pdp-theme-color-rgb, 23,25,64), .18);
}
.pdp-learning-page .pdp-audio-controls[hidden] { display: none !important; }
.pdp-learning-page .pdp-audio-status {
  display: none;
}
.pdp-learning-page .pdp-audio-buttons {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: nowrap;
}
.pdp-learning-page .pdp-audio-btn {
  border: 1px solid rgba(var(--pdp-theme-color-rgb, 23,25,64), .14);
  border-radius: 999px;
  padding: .38rem .58rem;
  background: rgba(var(--pdp-theme-color-rgb, 23,25,64), .08);
  color: var(--pdp-theme-color, #171940);
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
.pdp-learning-page .pdp-audio-btn:first-child {
  background: rgba(var(--pdp-theme-color-rgb, 23,25,64), .16);
  border-color: rgba(var(--pdp-theme-color-rgb, 23,25,64), .3);
  color: var(--pdp-theme-color, #171940);
}
.pdp-learning-page .pdp-audio-btn.secondary {
  background: transparent;
  color: rgba(23,25,64,.68);
  box-shadow: none;
}
.pdp-learning-page .pdp-audio-btn:hover:not(:disabled),
.pdp-learning-page .pdp-audio-btn:focus-visible:not(:disabled) {
  filter: brightness(.98);
  outline: 2px solid rgba(var(--pdp-theme-color-rgb, 23,25,64), .16);
  outline-offset: 2px;
}
.pdp-learning-page .pdp-audio-btn:disabled {
  display: none;
}

/* Focus mode hides the module banner and M1/M2/M3 strip for a clean lesson view. */
.pdp-learning-shell.is-focus-mode .pdp-module-theme-header,
.pdp-learning-shell.is-focus-mode .pdp-mobile-module-strip {
  display: none !important;
}


/* Print dropdown for learning page */
.pdp-learning-print-wrap {
  position: relative;
  display: inline-flex;
}

.pdp-learning-print-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  display: none;
  padding: 8px;
  border: 1px solid rgba(23,25,64,.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23,25,64,.10);
  z-index: 90;
}

.pdp-learning-print-wrap.is-open .pdp-learning-print-menu {
  display: grid;
  gap: 4px;
}

.pdp-learning-print-menu button {
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.25;
  color: #171940;
  cursor: pointer;
}

.pdp-learning-print-menu button:hover,
.pdp-learning-print-menu button:focus-visible {
  background: rgba(var(--pdp-theme-color-rgb), .08);
  outline: 0;
}

.pdp-learning-print-menu small {
  display: block;
  margin-top: 2px;
  font-size: .74rem;
  font-weight: 600;
  color: #6b6f7a;
}

#pdpLearningPrintRoot {
  display: none;
}

.pdp-learning-print-doc {
  font-family: "Inter", "Noto Sans", sans-serif;
  color: #171940;
}

.pdp-learning-print-header {
  border-bottom: 4px solid var(--pdp-print-theme-color, #2E5FA3);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.pdp-learning-print-eyebrow {
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pdp-print-theme-color, #2E5FA3);
}

.pdp-learning-print-title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 900;
  color: #171940;
}

.pdp-learning-print-meta {
  margin: 8px 0 0;
  font-size: .9rem;
  color: #555;
}

.pdp-learning-print-module-heading {
  break-before: page;
  page-break-before: always;
  margin: 26px 0 18px;
  padding: 12px 0 10px;
  border-bottom: 3px solid var(--pdp-print-module-color, var(--pdp-print-theme-color, #2E5FA3));
}

.pdp-learning-print-module-heading:first-of-type {
  break-before: auto;
  page-break-before: auto;
}

.pdp-learning-print-module-kicker {
  margin: 0 0 5px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pdp-print-module-color, var(--pdp-print-theme-color, #2E5FA3));
}

.pdp-learning-print-module-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 900;
  color: #171940;
}

.pdp-learning-print-step {
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(23,25,64,.12);
}

.pdp-learning-print-step:last-child {
  border-bottom: 0;
}

.pdp-learning-print-step-label {
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pdp-print-theme-color, #2E5FA3);
}

.pdp-learning-print-step-title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 850;
  color: #171940;
}

.pdp-learning-print-step .lesson-card,
.pdp-learning-print-step .lesson-card * {
  box-shadow: none !important;
}

.pdp-learning-print-step img,
.pdp-learning-print-step svg,
.pdp-learning-print-step canvas {
  max-width: 100% !important;
  height: auto !important;
}

.pdp-learning-print-step textarea {
  min-height: 90px;
  border: 1px solid rgba(23,25,64,.20);
  background: #fff;
}

@media (max-width: 991.98px) {
  .pdp-learning-print-menu {
    left: 0;
    right: auto;
    min-width: min(82vw, 260px);
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  html,
  body {
    background: #fff !important;
  }

  body.pdp-learning-printing > *:not(#pdpLearningPrintRoot) {
    display: none !important;
  }

  body.pdp-learning-printing #pdpLearningPrintRoot {
    display: block !important;
  }

  .pdp-learning-print-doc {
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .pdp-learning-print-step {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pdp-learning-print-step .lesson-card {
    border: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .pdp-learning-print-step .reflection-field textarea {
    border: 1px solid #bbb !important;
  }
}
/* Fix: Module Contents title stays fixed, only menu list scrolls */
@media (max-width: 991px) {
  #pdpLearningSidebar {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    max-height: calc(100dvh - 48px);
    background: #fff;
    isolation: isolate;
  }

  #pdpLearningSidebar .sidebar-header,
  #pdpLearningSidebar .pdp-sidebar-header,
  #pdpLearningSidebar .module-contents-header,
  #pdpLearningSidebar #pdp-sidebar-title,
  #pdpLearningSidebar .sidebar-subtitle {
    flex: 0 0 auto;
    position: relative;
    z-index: 10;
    background: #fff;
  }

  #pdpLearningSidebar #module-sections {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
  }
}


/* ---------- Module overview grid ---------- */
.pdp-module-overview-wrap {
  margin: 0 0 2.75rem;
}

.pdp-module-progress-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  margin: 0 0 1.5rem;
  font-family: "Inter", "Noto Sans", sans-serif;
}

.pdp-module-progress-summary-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pdp-ink);
}

.pdp-module-progress-summary-label {
  font-size: .95rem;
  color: var(--pdp-muted);
}

.pdp-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pdp-module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  padding: 18px 18px 16px;
  border: 1px solid rgba(23, 25, 64, .12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 25, 64, .06);
  cursor: pointer;
  font-family: "Inter", "Noto Sans", sans-serif;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pdp-module-card:hover,
.pdp-module-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(23, 25, 64, .12);
  border-color: rgba(23, 25, 64, .22);
}

.pdp-module-card.current {
  border: 2px solid var(--module-color, var(--pdp-purple));
}

.pdp-module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pdp-module-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--module-color, #666);
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
}

.pdp-module-card-pill {
  font-size: .74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pdp-module-card-pill-todo {
  background: rgba(23, 25, 64, .08);
  color: var(--pdp-muted);
}

.pdp-module-card-pill-progress {
  background: rgba(180, 120, 20, .14);
  color: #8a5a10;
}

.pdp-module-card-pill-done {
  background: rgba(22, 128, 60, .14);
  color: #16803c;
}

.pdp-module-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--pdp-ink);
  min-height: 42px;
}

.pdp-module-card-desc {
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--pdp-muted);
  flex-grow: 1;
}

.pdp-module-card-progress {
  height: 6px;
  border-radius: 4px;
  background: rgba(23, 25, 64, .08);
  overflow: hidden;
}

.pdp-module-card-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--module-color, #666);
}

.pdp-module-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--module-color, var(--pdp-purple));
}

@media (max-width: 991.98px) {
  .pdp-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .pdp-module-grid {
    grid-template-columns: 1fr;
  }

  .pdp-module-card-title {
    min-height: 0;
  }
}
@media (min-width: 992px) {
  .pdp-learning-toolbar-group-contents {
    transform: translateY(40px);
  }
}

.pdp-progress-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.pdp-progress-col .pdp-progress-open-btn {
  align-self: flex-end;
}

.pdp-module-strip-row {
  margin: 0 0 18px;
  padding: 4px 0 18px;
  border-bottom: 1px solid rgba(23,25,64,.10);
}

@media (min-width: 992px) {
  .pdp-learning-toolbar {
    margin-top: 8px;   /* αντί για 50px */
  }
}

/* Λιγότερο έντονα τα M1, M2, M3, M5, M6 — bold μόνο στο ενεργό */
.pdp-mobile-module-strip .pdp-module-circle:not(.active) {
  font-weight: 500;
}

/* Πιο κοντό "κοντάρι" + πιο κοντά το badge στον κύκλο, ώστε να μειωθεί
   και ο συνολικός χώρος που χρειάζεται η μπάρα */
.pdp-mobile-module-strip .pdp-module-circle.active[data-current-section]::before {
  top: calc(100% + 4px);
  height: 10px;
}

.pdp-mobile-module-strip .pdp-module-circle.active[data-current-section]::after {
  top: calc(100% + 14px);
}

/* Μπάρα πιο compact, αλλά με αρκετό padding-bottom ώστε
   το badge να μη «κόβεται» πάνω στη γραμμή */
.pdp-module-strip-row {
  margin: 0 0 26px;
  padding: 4px 0 40px;
}

@media (min-width: 992px) {
  .pdp-learning-toolbar-group-contents {
    transform: none !important;
  }
}

.pdp-progress-col {
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end; /* τα κουμπιά πάνε ξανά δεξιά */
  gap: 12px;
  flex-wrap: nowrap;
}

/* Ο τίτλος "M1 · ... 2%" πάνω αριστερά δεν χρειάζεται πια. */
.pdp-progress-col #pdp-learning-progress {
  display: none !important;
}

/* Print + My Progress στην ίδια σειρά, στοιχισμένα δεξιά */
#pdpProgressButtonSlot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.pdp-progress-col .pdp-progress-open-btn {
  flex: 0 0 auto;
  align-self: flex-end;
}

.pdp-mobile-module-strip .pdp-module-topbar-label {
  font-size: .92rem;
}

.pdp-mobile-module-strip .pdp-module-circle {
  font-size: .88rem !important;
}

.pdp-mobile-module-strip .pdp-module-circle.active {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
}

.pdp-mobile-module-strip {
  gap: 5px;
}

.pdp-progress-col {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title  title"
    "bar    button";
  align-items: center;
  column-gap: 14px;
  row-gap: 6px;
}

#pdp-learning-progress {
  display: contents; /* τα παιδιά του μπαίνουν κατευθείαν στο grid */
}

.pdp-learning-progress-head {
  grid-area: title;
}

.pdp-learning-progress-bar {
  grid-area: bar;
  align-self: center;
}

.pdp-progress-col .pdp-progress-open-btn {
  grid-area: button;
  align-self: center;
}

.pdp-progress-col {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Ο τίτλος "M4 · Technology..." μένει πάνω από τη γραμμή, εκτός ροής */
.pdp-progress-col .pdp-learning-progress-head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: 6px;
}

/* Μπάρα + κουμπί μπαίνουν στην ίδια γραμμή */
.pdp-progress-col .pdp-learning-progress-bar {
  flex: 1 1 auto;
  min-width: 120px;
}

.pdp-progress-col .pdp-progress-open-btn {
  flex: 0 0 auto;
}

.pdp-progress-col {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;   /* δεσμεύει χώρο για τον τίτλο μέσα στο ίδιο block */
  margin-top: 8px;     /* λίγη απόσταση από το μωβ banner */
}

.pdp-progress-col .pdp-learning-progress-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
}

.pdp-progress-col .pdp-learning-progress-bar {
  flex: 1 1 auto;
  min-width: 120px;
}

.pdp-progress-col .pdp-progress-open-btn {
  flex: 0 0 auto;
}
#lesson-area .main-content {
  display: flex;
  flex-direction: column;
}

#pdp-audio-controls {
  position: relative;
  z-index: 2;
  order: -1;
  margin-top: 0;
  margin-bottom: 10px;
}

.lesson-progress-wrap {
  order: 0;
}

#lesson-meta {
  position: relative;
  z-index: 1; /* σιγουρεύει ότι η πυραμίδα/τίτλος μένουν πάνω από οτιδήποτε άλλο */
}

.lesson-crumb-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.72rem;
}

.lesson-crumb-section .lesson-crumb-badge {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  font-size: 0.68rem;
}

.lesson-subsection-number {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--pdp-theme-color-rgb, 23,25,64), .08);
  color: var(--pdp-theme-color, #171940);
  font-size: 0.85rem;
  font-weight: 700;
  vertical-align: middle;
}

.lesson-subsection-title {
  font-size: 1.4rem;
}

/* ============================================================
   PDP module header — brand accents tied to the logo colors
   Προσθήκη στο pdp-modules2.css (στο τέλος του αρχείου αρκεί)
   ============================================================ */

.pdp-module-theme-brand-dots {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.pdp-brand-dot {
  display: block;
  border-radius: 50%;
  opacity: .9;
}

.pdp-brand-dot-1 { width: 9px; height: 9px; background: #f5a9ed; }
.pdp-brand-dot-2 { width: 7px; height: 7px; background: #fdef02; margin-bottom: 2px; }
.pdp-brand-dot-3 { width: 9px; height: 9px; background: #fd5b00; }
.pdp-brand-dot-4 { width: 7px; height: 7px; background: #0219fc; margin-bottom: 2px; }

.pdp-module-theme-brand-line {
  height: 4px;
  width: 120px;
  max-width: 40%;
  margin: 10px 0 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f5a9ed, #fdef02, #fd5b00, #0219fc);
}

/* Λευκό στρογγυλό badge αντί για το ημιδιάφανο -
   το χρώμα του κειμένου παίρνει αυτόματα το χρώμα του εκάστοτε module */
.pdp-module-theme-header .pdp-module-theme-code {
  background: #fff !important;
  border-color: rgba(255,255,255,.6) !important;
  color: var(--pdp-theme-color) !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.15) !important;
}

@media (max-width: 991.98px) {
  .pdp-module-theme-brand-dots {
    top: 14px;
    right: 16px;
  }

  .pdp-module-theme-brand-line {
    width: 90px;
    margin: 8px 0 0;
  }
}

@media (max-width: 520px) {
  .pdp-module-theme-brand-dots {
    top: 12px;
    right: 12px;
  }

  .pdp-brand-dot-1, .pdp-brand-dot-3 { width: 7px; height: 7px; }
  .pdp-brand-dot-2, .pdp-brand-dot-4 { width: 5px; height: 5px; }
}

/* ============================================================
   Fixes (Jul 2026)
   1) Το ποσοστό προόδου (π.χ. "2%") μένει αριστερά, αμέσως
      μετά τον τίτλο "M1 · ...", όχι τέρμα δεξιά.
   2) Το badge τρέχουσας ενότητας κάτω από τον ενεργό κύκλο
      module (π.χ. "1.1") κρύβεται στο desktop — εκεί έπεφτε
      πάνω στον τίτλο και έδειχνε σαν διπλό εικονίδιο.
      Στο mobile strip παραμένει όπως σχεδιάστηκε.
   ============================================================ */

.pdp-learning-progress-head {
  justify-content: flex-start;
}

.pdp-learning-progress-title {
  flex: 0 1 auto; /* ο τίτλος παίρνει όσο χώρο χρειάζεται, το % κολλάει δίπλα του */
}

.pdp-page-loader {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #171940;
}

.pdp-page-loader i {
    font-size: 1.4rem;
}

.reflection-save-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-height: 22px;
    margin-top: 5px;

    font-size: 0.95rem;
}

.reflection-save-status.is-saving {
    color: #6c757d;
}

.reflection-save-status.is-saved {
    color: #2e7d32;
}

.reflection-save-status.is-error {
    color: #b45309;
}