.ace-page {
  padding: 40px 0;
}

.ace-wrap {
  max-width: 1174px;
  margin: 0 auto;
  padding: 0 16px;
}

.ace-header {
  margin-bottom: 24px;
}

.ace-title {
  font-size: 36px;
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
}

.ace-subtitle {
  margin-top: 8px;
  color: #4b5563;
  font-size: 18px;
}

.ace-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .ace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ace-card .ace-body div {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  padding: 10px;
  margin-bottom: 10px;
}

.ace-card .ace-focus {
  margin-top: 10px;
  height: 150px;
}

.ace-card .ace-core-activities {
  height: 500px;
}

.ace-card .ace-tools-deliverables {
  height: 400px;
}

.ace-stripe {
  height: 6px;
}

.ace-stripe-1 { 
  background-image: linear-gradient(90deg, #07b3bc, #275a5d); 
}

.ace-stripe-2 { 
  background-image: linear-gradient(90deg, #57b094, #3e7a5c); 
}

.ace-stripe-3 { 
  background-image: linear-gradient(90deg, #cd82bd, #77045f); 
}

.ace-body {
  padding: 24px 0;
}

.ace-h2 {
  margin: 0;
  font-weight: 700;
}

.ace-phase {
  margin: 6px 0 0;
  color: #6b7280;
}

.ace-section-head {
  margin: 16px 0 6px;
  font-weight: 700;
  color: #374151;
}

.ace-text {
  margin: 0;
  color: #1f2937;
}

.ace-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #1f2937;
}

.ace-li {
  margin: 6px 0;
}

.ace-outcome-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.ace-outcome-label {
  color: #6b7280;
  font-weight: 700;
}

.ace-badge {
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 10px;
}

.ace-footer {
  text-align: center;
  color: #6b7280;
  margin-top: 28px;
}

/** V2 **/
/* Page container */
.ace-page {
  padding: 40px 0;
  /* background: #fafafa; */
}

.ace-wrap {
  max-width: 1174px;
  margin: 0 auto;
  padding: 0;
}

/* Header */
.ace-header {
  margin-bottom: 32px;
}

.ace-title {
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.ace-subtitle {
  margin: 0;
  color: #6b7280;
}

/* Main three-column layout */
.ace-layout {
  display: grid;
  grid-template-columns: 220px 40px minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

/* Left stepper */
.ace-stepper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ace-step {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 0 16px 0;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.ace-step:last-child {
  border-bottom: none;
}

.ace-step-title {
  display: block;
  font-weight: 600;
  color: #111827;
}

.ace-step-subtitle {
  display: block;
  color: #9ca3af;
  margin-top: 2px;
}

.ace-step:hover {
  transform: translateX(3px);
}

.ace-step-active .ace-step-title {
  color: #111827;
}

.ace-step-active .ace-step-subtitle {
  color: #4b5563;
}

.ace-step-active {
  border-color: #111827;
}

/* Center progress line */
.ace-timeline-container {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 12px;
  height: 350px;
}

.ace-timeline-bg {
  width: 2px;
  /* background: #e5e7eb; */
  border-radius: 999px;
  position: absolute;
  top: 0;
  bottom: 0;
}

.ace-timeline-fill {
  width: 2px;
  border-radius: 999px;
  position: absolute;
  bottom: 0;
  height: 0%;
  background-image: linear-gradient(180deg, #ededed, #9ca3af);
  transition: height 0.35s ease;
}

/* Right content panel */
.ace-content {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 28px 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.ace-content-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ace-content-subtitle {
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

/* Sections inside the content panel */
.ace-section {
  margin-top: 24px;
}

.ace-section-label {
  letter-spacing: 0.24em;
  color: #333333;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ace-text {
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

.ace-list {
  list-style: disc;
  margin: 6px 0 0;
  padding-left: 18px;
}

.ace-list-item {
  color: #666666;
  line-height: 1.6;
  margin: 4px 0;
}

/* Outcome row */
.ace-outcome-row {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ace-outcome-label {
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ace-outcome-value {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  color: #111827;
  background: #f9fafb;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .ace-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ace-timeline-container {
    display: none;
  }

  .ace-stepper {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
  }

  .ace-step {
    border-bottom: none;
    border-right: 1px solid #e5e7eb;
    padding-right: 16px;
    margin-right: 16px;
    white-space: nowrap;
  }

  .ace-step:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .ace-content {
    padding: 20px 16px;
  }
}
