/* Qualification Progress Styling - Exact Match to ACCA / CIMA Portal */

.qp-wrap {
  background: #ffffff;
  min-height: calc(100vh - 280px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1c1d1f;
  -webkit-font-smoothing: antialiased;
}

.qp-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  box-sizing: border-box;
}

/* Back Link */
.qp-back {
  margin-bottom: 1.75rem;
}

.qp-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1c1d1f;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.qp-back a:hover {
  color: #72246c;
}

.qp-back svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Select Qualification Dropdown */
.qp-select-group {
  margin-bottom: 2.5rem;
}

.qp-select-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1c1d1f;
  margin-bottom: 0.5rem;
}

.qp-select-wrapper {
  position: relative;
  width: 100%;
}

.qp-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #1c1d1f;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qp-select:focus {
  border-color: #1c1d1f;
  box-shadow: 0 0 0 2px rgba(28, 29, 31, 0.1);
}

.qp-select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section Common */
.qp-section {
  margin-bottom: 3.25rem;
}

.qp-section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1c1d1f;
  margin: 0 0 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Qualification Details Card */
.qp-details-card {
  background-color: #f7f9fa;
  border-radius: 4px;
  padding: 2rem 2.5rem;
  border: 1px solid #edf0f2;
}

.qp-details-row {
  display: flex;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e8ecef;
}

.qp-details-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.qp-details-row:first-child {
  padding-top: 0;
}

.qp-details-label {
  width: 240px;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1c1d1f;
}

.qp-details-value {
  font-size: 1rem;
  font-weight: 400;
  color: #1c1d1f;
}

/* Progress Section Rows */
.qp-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 1.5rem;
  gap: 2.5rem;
}

.qp-progress-circle-col {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qp-progress-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.qp-progress-action-col {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Stat Display (Middle Col) */
.qp-stat-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qp-stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1c1d1f;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.qp-stat-label {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1c1d1f;
  margin: 0.35rem 0 0;
  line-height: 1.2;
}

/* Multi-Item Stat Display (PER middle col) */
.qp-stat-items-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qp-stat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.qp-stat-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.qp-stat-text-wrap {
  display: flex;
  flex-direction: column;
}

.qp-stat-item-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1c1d1f;
  margin: 0;
  line-height: 1.3;
}

.qp-stat-item-sub {
  font-size: 0.9375rem;
  color: #333333;
  margin: 0.35rem 0 0;
  font-weight: 400;
  line-height: 1.3;
}

/* Actions & Links (Right Col) */
.qp-action-btn {
  background-color: #72246c;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  padding: 0.7rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  margin-bottom: 1.25rem;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(114, 36, 108, 0.25);
}

.qp-action-btn:hover {
  background-color: #5c1657;
  box-shadow: 0 4px 10px rgba(114, 36, 108, 0.35);
}

.qp-action-btn:active {
  transform: translateY(1px);
}

.qp-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.qp-dotted-link {
  color: #1c1d1f;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  display: inline;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.qp-dotted-link span {
  border-bottom: 1px dotted #1c1d1f;
  transition: border-color 0.15s ease;
}

.qp-dotted-link:hover {
  color: #72246c;
}

.qp-dotted-link:hover span {
  border-bottom-color: #72246c;
}

.qp-red-link,
.qp-purple-link {
  color: #72246c;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  display: inline;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.qp-red-link span,
.qp-purple-link span {
  text-decoration: underline;
}

.qp-red-link:hover,
.qp-purple-link:hover {
  color: #5c1657;
}

/* Useful Links Section */
.qp-useful-links-desc {
  font-size: 1rem;
  color: #555555;
  margin: -0.75rem 0 2rem;
  line-height: 1.45;
}

.qp-resource-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1d1f;
  margin: 2.25rem 0 1.25rem;
}

.qp-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.qp-resource-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: block;
  box-sizing: border-box;
}

.qp-resource-card:hover {
  border-color: #72246c;
  box-shadow: 0 4px 14px rgba(114, 36, 108, 0.12);
  transform: translateY(-2px);
}

.qp-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1d1f;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.qp-card-desc {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.5;
  margin: 0;
}

/* SVG Circular Progress Styles */
.qp-meter-svg {
  width: 136px;
  height: 136px;
  display: block;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .qp-progress-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }

  .qp-progress-info-col {
    padding: 0;
    width: 100%;
  }

  .qp-stat-center {
    align-items: flex-start;
    text-align: left;
  }

  .qp-progress-action-col {
    width: 100%;
  }

  .qp-resource-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .qp-details-card {
    padding: 1.5rem 1.25rem;
  }

  .qp-details-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .qp-details-label {
    width: 100%;
  }
}
