/* ===== SECTION ===== */
.roles {
  padding: 1px 0 0 0;
  background: transparent;   /* ✅ remove white box feeling */
  text-align: center;
}

.roles h2 {
  font-size: 2.4rem;
  margin-bottom: 60px;
  color: #2c3e50;
}

/* ===== WRAPPER ===== */
.roles-wrapper {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 0 auto;
}

/* subtle scientific guide circle */
.roles-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed #d6dee8;
  z-index: 0;
}

/* ===== CENTER NODE ===== */
.center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2c4a9a;
  color: white;
  padding: 20px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  z-index: 2;

  /* subtle depth */
  box-shadow: 0 4px 12px rgba(44,74,154,0.25);
}

/* ===== ROLE NODES (EQUAL SIZE) ===== */
.role-node {
  position: absolute;
  width: 160px;
  height: 90px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  background: transparent;              /* ✅ no color by default */
  border: 1.5px solid #2c3e50;
  border-radius: 6px;

  padding: 10px;
  z-index: 2;

  transition: all 0.25s ease;
}

.role-node:hover {
  background: #e8eefc;                  /* soft scientific blue */
  border-color: #2c4a9a;

  transform: translateY(-2px);          /* tiny lift */
}

.roles-wrapper:hover .connections line {
  stroke: #cbd5e1;
}

.role-node:hover {
  background: #e8eefc;
  border-color: #2c4a9a;
}

.role-node h3 {
  font-size: 0.85rem;
  margin-bottom: 3px;
  color: #1f2937;                       /* darker = sharper */
  font-weight: 600;
  letter-spacing: 0.2px;
}

.role-node p {
  font-size: 0.75rem;
  color: #4b5563;
}

.role-node p {
  font-size: 0.8rem;
  color: #6b7280;
}

/* subtle scientific hover */
.role-node:hover {
  border-color: #2c4a9a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== POSITIONS (YOUR TUNED VERSION) ===== */
.top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.right {
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
}

.bottom-right {
  bottom: 0;
  right: 10px;
}

.bottom-left {
  bottom: 0;
  left: 10px;
}

.left {
  top: 50%;
  left: -100px;
  transform: translateY(-50%);
}

/* ===== CONNECTION LINES ===== */
.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.connections line {
  stroke: #94a3b8;      /* slightly darker */
  stroke-width: 1.6;    /* sharper */
  stroke-linecap: square;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {

  .roles-wrapper {
    width: 100%;
    height: auto;
  }

  .connections {
    display: none;
  }

  .role-node,
  .center-node {
    position: static;
    transform: none;
    margin: 10px auto;
  }

.roles-wrapper::before {
  border: 1px dashed #cbd5e1;
}
}