/* =========================
   Base wrapper
========================= */
.ehl-tools-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   Hero Section
========================= */
.self-assessment-hero {
  text-align: center;
  background: linear-gradient(rgba(46,49,146,0.6), rgba(242,101,34,0.6)),
  url('https://www.ehelpedit-project.eu/eHL-platform/wp-content/uploads/2025/10/eHL-background.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 60px 20px;
  border-radius: 10px;
}

.self-assessment-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #fff;
}

.self-assessment-hero p {
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

/* =========================
   Tool Grid
========================= */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 50px 0;
  padding: 0 20px;
}

.tool-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
  text-align: center;
  padding: 30px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #2E3192;
}

.tool-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

/* =========================
   Buttons
========================= */
.btn-learn-more {
  display: inline-block;
  padding: 10px 22px;
  background: #2E3192;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
  margin-top: auto;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.10);
}

.btn-learn-more:hover {
  background: #474FC7;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-learn-more::after {
  content: " →";
  font-weight: bold;
  transition: transform 0.3s ease;
}

.btn-learn-more:hover::after {
  transform: translateX(3px);
}

/* =========================
   Login Notice
========================= */
.login-notice {
  text-align: center;
  background: #f9dada;
  color: #b33;
  border: 1px solid #b33;
  border-radius: 8px;
  padding: 15px;
  max-width: 600px;
  margin: 40px auto;
}

/* =========================
   Score Panel
========================= */
.score-panel {
  background: #f0f4ff;
  border: 2px solid #2E3192;
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

.score-panel h2 {
  color: #2E3192;
  margin-bottom: 10px;
}

.score-panel p {
  color: #333;
  margin: 0;
}

/* =========================
   Personalized Feedback Panel
========================= */
.results-panel {
  background: #fff;
  border: 2px solid #F26522;
  border-radius: 10px;
  padding: 0;
  max-width: 900px;
  margin: 20px auto 40px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.results-panel .results-summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  background: #fff7f0;
  margin: 0 !important;
}

/* Push subtitle to the far right */
.results-summary .results-subtitle {
  margin-left: auto;
  font-size: 0.95rem;
  color: #444;
  white-space: nowrap;
}

.results-panel summary::-webkit-details-marker {
  display: none;
}

.results-title {
  font-weight: 800;
  color: #2E3192;
  font-size: 1.1rem;
}

.results-subtitle {
  color: #444;
  font-size: 0.95rem;
}

.results-content {
  padding: 18px;
}

.results-panel h3 {
  margin: 18px 0 8px 0;
  color: #F26522;
}

.results-panel .text {
  color: #222;
  line-height: 1.6;
  text-align: justify;
  white-space: normal;
}

.results-panel .text a {
  color: #2E3192;
  font-weight: 800;
  text-decoration: underline;
}

/* Optional list styling if HTML lists ever used */
.results-panel .text ul,
.results-panel .text ol {
  margin: 10px 0;
  padding-left: 22px;
}

.results-panel .text li {
  margin: 6px 0;
}

/* Chevron */
.results-summary::after {
  content: "▼";
  font-size: 1.1rem;
  transform: translateY(-1px);
  margin-left: 8px;
}

.results-panel[open] .results-summary::after {
  content: "▲";
}

/* =========================
   Dashboard charts
========================= */
.results-dashboard {
  display: grid;
  gap: 16px;
  margin: 10px 0 8px 0;
}

.dash-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.dash-card--overall {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.dash-card-title {
  min-height: 1.2em;
}

.dash-card-subtitle {
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-grid {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dash-chart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  margin: 12px auto 0 auto;
}

.dash-hole {
  position: absolute;
  inset: 14px;
  background: #fff;
  border-radius: 50%;
  z-index: 1;
}

.dash-center {
  position: absolute;
  inset: 0;
  place-items: center;
  text-align: center;
  z-index: 2;
  padding: 8px;
  display: none;
}

.dash-score {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: #2E3192;
}

.dash-outof {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
  margin-left: 3px;
}

.dash-percent {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dash-card--overall {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Overall column chart
========================= */
.dash-overall-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-overall-total {
  text-align: right;
}

.dash-overall-score {
  font-weight: 900;
  color: #2E3192;
  font-size: 1.35rem;
  line-height: 1.1;
}

.dash-overall-outof {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.75;
  margin-left: 4px;
}

.dash-overall-percent {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 4px;
}

.overall-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  align-items: end;
}

.overall-bar {
  background: #f4f6ff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 10px;
  height: 190px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
}

.overall-bar-fill {
  width: 100%;
  height: 0%;
  border-radius: 8px;
  align-self: end;
  transition: height 0.5s ease;
}

.overall-bar-label {
  font-weight: 800;
  color: #2E3192;
  font-size: 0.95rem;
  text-align: center;
}

.overall-bar-value {
  font-size: 0.85rem;
  color: #333;
  opacity: 0.85;
  text-align: center;
  display: none;
}

.overall-note {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .overall-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}