/* =========================================================
   PULSE-ART CF Structure Infographic
   Compact version - load AFTER custom.css
   ========================================================= */

.cf-structure-section {
  --cf-bg: #f4f4f4;
  --cf-text: #111;
  --cf-muted: #555;
  --cf-border: #111;
  --cf-pink: #eda2ec;
  --cf-blue: #6fc5f2;
  --cf-yellow: #ffe74a;
  --cf-dark-blue: #0629ff;
  --cf-orange: #ff6c35;
  --cf-panel: #eeeeee;
  --cf-panel-2: #dedede;
  --cf-white: #f8f8f8;
  --cf-eu-blue: #064ca5;

  background: transparent;
  color: var(--cf-text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.cf-structure-section,
.cf-structure-section * {
  box-sizing: border-box;
}
.cf-structure-section {
  width: 100%;
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
}

.cf-structure-section .cf-page {
  width: 100%;
  max-width: 720px;
  margin: 0;
  padding: 0;
}

/* Main wrapper */
.cf-structure-section .page {
  width: 100%;
  max-width: 720px;
  margin: 0;
  padding: 0;
  min-height: auto;
  display: block;
}

/* Optional title, if used */
.cf-structure-section h1 {
  margin: 0 0 22px;
  max-width: 720px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.cf-structure-section .main-card {
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  padding: 22px 24px 26px;
  background: transparent;
  max-width: 720px;
}

.cf-structure-section .competence-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px 0;
}

.cf-structure-section .pink-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cf-pink);
  flex: 0 0 auto;
}

.cf-structure-section h2 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: normal;
  font-weight: 500;
  text-transform: none;
}

.cf-structure-section .intro-text {
  margin: 0 0 18px 0;
  max-width: 620px;
  color: var(--cf-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: normal;
}

.cf-structure-section .intro-text {
  margin: 0 0 18px 0;
  max-width: 620px;
  color: var(--cf-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: normal;
}

.cf-structure-section .cluster-panel {
  background: var(--cf-panel-2);
  border-radius: 16px;
  padding: 22px 20px 24px;
}

.cf-structure-section .cluster-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.cf-structure-section .blue-square {
  width: 22px;
  height: 22px;
  background: var(--cf-blue);
  flex: 0 0 auto;
}

.cf-structure-section .cluster-title span,
.cf-structure-section .proficiency-title {
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: normal;
  font-weight: 500;
  text-transform: uppercase;
  color: #9c1c6b;
}

.cf-structure-section .cluster-copy {
  margin: 0 0 30px;
  max-width: 620px;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: normal;
}

.cf-structure-section .ksa-box {
  background: var(--cf-white);
  border-radius: 14px;
  padding: 26px 18px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 30px;
}

.cf-structure-section .ksa-item {
  text-align: center;
}

.cf-structure-section .ksa-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: normal;
  white-space: nowrap;
}

.cf-structure-section .tri-up,
.cf-structure-section .tri-down {
  width: 0;
  height: 0;
  flex: 0 0 auto;
}

.cf-structure-section .tri-up {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid var(--cf-yellow);
}

.cf-structure-section .tri-down {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid var(--cf-orange);
}

.cf-structure-section .diamond {
  width: 10px;
  height: 10px;
  background: var(--cf-dark-blue);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.cf-structure-section .icon {
  font-size: 1rem;
  line-height: 1;
  filter: grayscale(1) contrast(1.3);
}

.cf-structure-section .ksa-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}


.cf-structure-section .proficiency-copy {
  margin: 0 0 18px;
  max-width: 620px;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: normal;
}

.cf-structure-section .levels {
  width: min(520px, 94%);
  margin: 0 auto;
  text-align: center;
}

.cf-structure-section .level-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 0.72rem;
  margin-bottom: 8px;
  color: #333;
}

.cf-structure-section .arrow {
  height: 14px;
  position: relative;
  border-top: 2px dotted #111;
  margin: 0 16px;
}

.cf-structure-section .arrow::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -7px;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid #111;
  border-right: 1.5px solid #111;
  transform: rotate(45deg);
}
.cf-main-title{
  font-size: 0.9rem;  
}
/* =====================================================
   CF STRUCTURE - LOWER TABLE DIAGRAM
===================================================== */

.cf-structure-section .cf-diagram-table-wrap {
  width: 100%;
  max-width: 720px;
  margin: 18px 0 0;
  padding: 18px 20px 22px;
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  background: transparent;
  overflow: visible;
}

.cf-structure-section .cf-diagram-table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: visible;
}

.cf-structure-section .cf-diagram-table th,
.cf-structure-section .cf-diagram-table td {
  border: 0;
  padding: 4px 6px;
  text-align: center;
  vertical-align: middle;
  overflow: visible;
}

.cf-structure-section .cf-diagram-table th {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 400;
  color: #111;
  padding-bottom: 12px;
}

.cf-structure-section .cf-diagram-table .cf-th-competences {
  text-align: left;
  font-weight: 900;
  text-transform: uppercase;
}

.cf-structure-section .cf-diagram-table tbody tr {
  height: 64px;
}

.cf-structure-section .cf-diagram-table th:nth-child(1) { width: 22%; }
.cf-structure-section .cf-diagram-table th:nth-child(2) { width: 14%; }
.cf-structure-section .cf-diagram-table th:nth-child(3) { width: 15%; }
.cf-structure-section .cf-diagram-table th:nth-child(4) { width: 15%; }
.cf-structure-section .cf-diagram-table th:nth-child(5) { width: 15%; }
.cf-structure-section .cf-diagram-table th:nth-child(6) { width: 19%; }

/* Competences tree */
.cf-structure-section .cf-competences-cell {
  position: relative;
  padding: 0;
}

.cf-structure-section .cf-tree-table {
  position: relative;
  width: 170px;
  height: 174px;
  margin: 0;
  overflow: visible;
}

.cf-structure-section .cf-node {
  position: absolute;
  left: 8px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cf-pink);
  z-index: 2;
}

.cf-structure-section .cf-node-1 { top: 0; }
.cf-structure-section .cf-node-2 { top: 64px; }
.cf-structure-section .cf-node-3 { top: 128px; }

.cf-structure-section .cf-tree-line-v {
  position: absolute;
  left: 31px;
  top: 46px;
  width: 1px;
  height: 82px;
  background: #111;
}

.cf-structure-section .cf-tree-branch-v {
  position: absolute;
  left: 62px;
  top: 23px;
  width: 1px;
  height: 128px;
  background: #111;
  z-index: 3;
}

.cf-structure-section .cf-tree-line-h {
  position: absolute;
  left: 54px;
  width: 132px;
  height: 1px;
  background: #111;
  z-index: 1;
}

.cf-structure-section .cf-h1 { top: 23px; }
.cf-structure-section .cf-h2 { top: 87px; }
.cf-structure-section .cf-h3 { top: 151px; }

/* Clusters */
.cf-structure-section .cf-cluster-cell {
  position: relative;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.cf-structure-section .cf-small-square {
  position: relative;
  z-index: 5;
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  background: var(--cf-blue);
}

/* Symbols */
.cf-structure-section .cf-symbols {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 50px;
}

.cf-structure-section .cf-up,
.cf-structure-section .cf-down {
  display: block;
  width: 0;
  height: 0;
}

.cf-structure-section .cf-up {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid var(--cf-yellow);
}

.cf-structure-section .cf-down {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid var(--cf-yellow);
}

.cf-structure-section .cf-att-down { border-top-color: var(--cf-orange); }
.cf-structure-section .cf-att-up { border-bottom-color: var(--cf-orange); }

.cf-structure-section .cf-diamond {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--cf-dark-blue);
  transform: rotate(45deg);
}

/* Brackets */
.cf-structure-section .cf-bracket {
  padding-left: 18px;
}

.cf-structure-section .cf-bracket::before,
.cf-structure-section .cf-bracket::after {
  content: "";
  position: absolute;
  left: 0;
  width: 10px;
  height: 1px;
  background: #111;
}

.cf-structure-section .cf-bracket::before { top: 0; }
.cf-structure-section .cf-bracket::after { bottom: 0; }

.cf-structure-section .cf-bracket-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: #111;
}

/* Proficiency */
.cf-structure-section .cf-proficiency-cell {
  position: relative;
  text-align: center;
  vertical-align: middle;
}

.cf-structure-section .cf-proficiency-cell::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 1px;
  height: 96px;
  background: #111;
  transform: translateY(-50%);
}

.cf-structure-section .cf-stars {
  display: inline-block;
  margin-left: 20px;
  font-size: 16px;
  letter-spacing: 5px;
  white-space: nowrap;
  color: #000;
}

.cf-structure-section .cf-stars span {
  color: #999;
}

/* Hide old grid diagram if it still exists in HTML */
.cf-structure-section .diagram {
  display: none !important;
}

@media (max-width: 768px) {
  .cf-structure-section .cf-diagram-table-wrap {
    padding: 14px 14px 18px;
    overflow-x: auto;
  }

  .cf-structure-section .cf-diagram-table {
    min-width: 640px;
  }
}

/* =====================================
   TWEAKS: branch position + row 3 square
===================================== */

/* move the inner vertical branch closer to the blue squares */
.cf-structure-section .cf-tree-branch-v {
  left: 92px;
}

/* keep horizontal lines spanning from the circle side to the squares */
.cf-structure-section .cf-tree-line-h {
  width: 132px;
  z-index: 2;
}

.cf-structure-section .cf-h1,
.cf-structure-section .cf-h3 {
  z-index: 2;
}

/* keep squares above the lines */
.cf-structure-section .cf-small-square {
  z-index: 5;
}

/* tiny visual correction so the 3rd square sits exactly on the line */
.cf-structure-section .cf-diagram-table tbody tr:nth-child(3) .cf-small-square {
  transform: translateY(-1px);
}

/* =====================================
   FIX: hide the left part of 1st and 3rd horizontal lines
   The 1st/3rd horizontal connectors start from the vertical branch,
   not from the pink circles.
===================================== */

/* vertical branch position */
.cf-structure-section .cf-tree-branch-v {
  left: 92px;
}

/* default: middle line remains from circle to square */
.cf-structure-section .cf-tree-line-h {
  left: 54px;
  width: 132px;
}

/* 1st and 3rd lines start from the branch, so no visible line before it */
.cf-structure-section .cf-h1,
.cf-structure-section .cf-h3 {
  left: 92px;
  width: 94px;
}

/* middle line stays connected from the middle circle */
.cf-structure-section .cf-h2 {
  left: 54px;
  width: 132px;
}


/* =====================================
   PROFICIENCY LINE: Foundational → Expert
===================================== */

.cf-structure-section .levels {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
}

.cf-structure-section .level-labels {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

.cf-structure-section .arrow {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 14px !important;
  margin: 0 !important;
  border-top: 2px dotted #111 !important;
}

.cf-structure-section .arrow::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  top: -7px !important;
  width: 10px !important;
  height: 10px !important;
  border-top: 1.5px solid #111 !important;
  border-right: 1.5px solid #111 !important;
  transform: rotate(45deg) !important;
}
/* =====================================
   PROFIENCY VERTICAL LINE: taller
===================================== */

.cf-structure-section .cf-proficiency-cell::before {
  left: 20px !important;
  top: 50% !important;
  height: 120px !important;   /* ήταν μικρότερη */
  width: 1px !important;
  background: #111 !important;
  transform: translateY(-50%) !important;
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {
  .cf-structure-section .cf-diagram-table-wrap {
    overflow-x: hidden !important;
    padding: 12px 8px 14px !important;
  }

  .cf-structure-section .cf-diagram-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
  }

  .cf-structure-section .cf-diagram-table th,
  .cf-structure-section .cf-diagram-table td {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}

@media (max-width: 768px) {
  .cf-structure-section .cf-diagram-table-wrap {
    overflow-x: hidden !important;
    padding: 12px 8px 14px !important;
  }

  .cf-structure-section .cf-diagram-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
  }

  .cf-structure-section .cf-diagram-table th,
  .cf-structure-section .cf-diagram-table td {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}