.diagram {
  flex: 1;
  background: var(--color-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.diagram-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: var(--color-black-75);
}

.diagram-title span {
  font-weight: bold;
}

.pillars {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pillar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-header {
  background: var(--color-accent-crimson);
  color: var(--color-white);
  padding: 0.75rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
}

.pillar-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: var(--color-black-75);
}

.pillar-item {
  background: var(--color-white);
  padding: 0.5rem;
  border-radius: 0.75rem;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pillar-item ul li {
  font-size: 0.75rem;
  padding: 0.25rem;
  color: var(--color-black-75);
}

.pillar_button {
  flex: 1;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: inherit;
}

.pillar {
  background: var(--color-accent-crimson);
  color: var(--color-white);
}

.pillar:hover {
  background: var(--color-black-75);
}

.platform-section {
  margin-top: 2rem;
}

.platform-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
  cursor: pointer;
}

.platform-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: var(--color-black-75);
}

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

.crimson-tag {
  color: var(--color-accent-crimson);
  font-weight: 600;
}

.foundation {
  background: var(--color-primary);
  color: var(--color-white);
}

.foundation:hover {
  background: var(--color-black-75);
}

@media (max-width: 768px) {

  .content,
  .diagram {
    width: 100%;
  }

  .pillars {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pillar-column {
    width: 100%;
    margin-bottom: 20px;
  }

  .pillar_button {
    width: 100%;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }
}

/* Path to Immunity */
@media (max-width: 1024px) {
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .timeline::before,
  .timeline::after {
    display: none;
  }

  .step {
    width: 100%;
    max-width: 400px;
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 4rem;
  padding-left: 2rem;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 6rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--color-accent-crimson) 2%,
      var(--color-accent-crimson) 98%,
      transparent 100%);
  z-index: 1;
}

.timeline::after {
  content: '';
  position: absolute;
  top: 81px;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg,
      var(--color-accent-crimson),
      var(--color-accent-crimson) 6px,
      transparent 6px,
      transparent 12px);
  opacity: 0.5;
  z-index: 1;
}

.step {
  flex: 1;
  max-width: 280px;
  position: relative;
  z-index: 2;
  margin: 0 1rem;
}

.step-content {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.step-content:hover {
  transform: translateY(-5px);
}

.step-header {
  background: var(--color-accent-crimson);
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  background: var(--color-white);
  color: var(--color-black-75);
  padding: 1.5rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FLUX DESIGN TEST */
.glitch-text {
  font-family: 'Arial Black', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  z-index: 1;
  /* Ensure it is above other elements */
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  z-index: -1;
  /* Ensure it is below the main text */
}

.glitch-text::before {
  color: #ff00ff;
  animation: glitch-effect 3s infinite linear alternate-reverse;
  z-index: -2;
}

.glitch-text::after {
  color: #00ffff;
  animation: glitch-effect 2s infinite linear alternate-reverse;
  z-index: -1;
}

@keyframes glitch-effect {
  0% {
    transform: translate(-2px, 2px);
  }

  25% {
    transform: translate(-1px, -1px);
  }

  50% {
    transform: translate(1px, 1px);
  }

  75% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(-2px, 2px);
  }
}

.sidebar-block {
  background-color: var(--color-light-grey);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-block h5 {
  font-weight: 600;
  margin-bottom: 12px;
}

.custom-list {
  list-style-type: none;
  padding-left: 0;
}

.custom-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.custom-list li:before {
  content: "→";
  color: var(--color-accent-crimson);
  position: absolute;
  left: 0;
}

.code-block {
  background: var(--color-light-grey);
  border-radius: 6px;
  padding: 16px;
  margin-top: 16px;
}

.code-block pre {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 14px;
  overflow-x: auto;
}

.mt-3 {
  margin-top: 1rem;
}

.sticky-sidebar {
  position: sticky;
  top: 150px;
}

.sidebar-block {
  background-color: var(--color-light-grey);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-block h5 {
  font-weight: 600;
  margin-bottom: 12px;
}

.custom-list {
  list-style-type: none;
  padding-left: 0;
}

.custom-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.custom-list li:before {
  content: "→";
  color: var(--color-accent-crimson);
  position: absolute;
  left: 0;
}

.code-block {
  background: var(--color-light-grey);
  border-radius: 6px;
  padding: 16px;
}

.code-block pre {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 14px;
  overflow-x: auto;
}

/* Media query to disable sticky behavior on small screens */
@media (max-width: 768px) {
  .sticky-sidebar {
    position: relative;
    top: 0;
  }
}

/* SLO Onboarding Specific Styles */
.slo-phase {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-light-grey);
  border-radius: 8px;
  border-left: 4px solid var(--color-accent-crimson);
}

.slo-phase-title {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-xl);
}

.slo-steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.slo-step {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
}

.slo-step:hover {
  background: var(--color-light-grey);
  border-color: var(--color-accent-crimson);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.slo-step-active {
  background: var(--color-accent-crimson);
  color: var(--color-white);
  border-color: var(--color-accent-crimson);
}

.slo-step-active:hover {
  background: var(--color-accent-crimson);
  color: var(--color-white);
}

/* Modal styles */
.slo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.slo-modal-show {
  display: flex !important;
  animation: fadeInOverlay 0.3s ease;
}

.slo-explanation {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  margin: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.slo-close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-accent-crimson);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.slo-close-button:hover {
  background: var(--color-primary);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: translateY(-50px) scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

.slo-explanation h3 {
  color: var(--color-primary);
  margin-top: 0;
  margin-right: 40px;
  font-weight: 600;
}

.slo-explanation ul {
  margin: 10px 0;
  padding-left: 20px;
}

.slo-explanation li {
  margin-bottom: 8px;
  list-style: disc;
}

.slo-explanation p {
  margin: 16px 0;
  line-height: 1.6;
}

.slo-explanation strong {
  font-weight: 700;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .slo-phase {
    padding: 1.5rem;
  }
  
  .slo-steps-container {
    grid-template-columns: 1fr;
  }
  
  .slo-explanation {
    margin: 10px;
    padding: 1.5rem;
  }
  
  .slo-step {
    padding: 0.75rem;
    font-size: var(--font-size-xs);
  }
}

/* ====================================
   Universal Module Modal & Card Styles
   Used by SLO Onboarding, LaunchDarkly Center of Enablement, and other interactive module pages
   ==================================== */

/* Generic module step containers - works for both slo-steps and other module types */
.module-steps-container,
.slo-steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Generic module step cards - works for both slo-step and other module types */
.module-step,
.slo-step {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
}

.module-step:hover,
.slo-step:hover {
  background: var(--color-light-grey);
  border-color: var(--color-accent-crimson);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.module-step-active,
.slo-step-active {
  background: var(--color-accent-crimson);
  color: var(--color-white);
  border-color: var(--color-accent-crimson);
}

.module-step-active:hover,
.slo-step-active:hover {
  background: var(--color-accent-crimson);
  color: var(--color-white);
}

/* Generic modal overlay - works for all module modals */
.module-modal-overlay,
.slo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.module-modal-show,
.slo-modal-show {
  display: flex !important;
  animation: fadeInOverlay 0.3s ease;
}

/* Generic modal content - works for all module explanations */
.module-explanation,
.slo-explanation {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  margin: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

/* Generic close button - works for all module modals */
.module-close-button,
.slo-close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-accent-crimson);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.module-close-button:hover,
.slo-close-button:hover {
  background: var(--color-primary);
}

/* Generic explanation content styling */
.module-explanation h3,
.slo-explanation h3 {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  margin-bottom: 1rem;
  font-weight: 700;
}

.module-explanation h4,
.slo-explanation h4 {
  color: var(--color-accent-crimson);
  font-size: var(--font-size-md);
  margin: 1.5rem 0 0.5rem 0;
  font-weight: 600;
}

.module-explanation ul,
.slo-explanation ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.module-explanation p,
.slo-explanation p {
  margin: 16px 0;
  line-height: 1.6;
}

.module-explanation strong,
.slo-explanation strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* Mobile responsiveness for generic module styles */
@media (max-width: 768px) {
  .module-phase,
  .slo-phase {
    padding: 1.5rem;
  }
  
  .module-steps-container,
  .slo-steps-container {
    grid-template-columns: 1fr;
  }
  
  .module-explanation,
  .slo-explanation {
    margin: 10px;
    padding: 1.5rem;
  }
  
  .module-step,
  .slo-step {
    padding: 0.75rem;
    font-size: var(--font-size-xs);
  }
}