/***MD + AI Workflow Section Stylesheet***/

.workflow-section {
  position: relative;
  padding: 120px 0px;
  background-color: #ffffff; /* White background alternating with light gray */
  overflow: hidden;
}

.workflow-section .sec-title {
  margin-bottom: 15px;
}

.workflow-section .sec-title .sub-title {
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 24px;
  color: var(--theme-color, #EB292C);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.workflow-section .sec-title h2 {
  display: block;
  font-size: 40px;
  line-height: 50px;
  color: var(--secondary-color, #0A0F20);
  font-weight: 800;
  font-family: var(--title-font);
}

.workflow-section .section-subheading {
  font-family: var(--title-font);
  font-size: 20px;
  line-height: 30px;
  color: #555555;
  font-weight: 500;
  margin-bottom: 30px;
}

.workflow-section .intro-text p {
  font-size: 16px;
  line-height: 28px;
  color: #000000;
  margin-bottom: 20px;
}

.workflow-section .intro-text p:last-child {
  margin-bottom: 0px;
}

.workflow-cards-wrapper {
  margin-top: 70px;
}

.workflow-step-card {
  position: relative;
  display: block;
  background: #ffffff;
  border: 1px solid #E5E8ED;
  border-radius: 12px;
  padding: 40px 30px;
  height: 100%;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.02);
  text-align: left; /* Left aligned content */
  transition: all 400ms ease;
  z-index: 2;
}

.workflow-step-card:hover {
  transform: translateY(-8px);
  border-color: var(--theme-color, #EB292C);
  box-shadow: 0px 15px 40px rgba(235, 41, 44, 0.08);
}

.workflow-step-card .step-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: var(--theme-color, #EB292C);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 3px 10px rgba(235, 41, 44, 0.15);
  z-index: 5;
}

.workflow-step-card .icon-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(235, 41, 44, 0.06); /* Light red tint */
  border-radius: 10px;
  margin-bottom: 25px;
  transition: all 400ms ease;
}

.workflow-step-card:hover .icon-tile {
  background-color: var(--theme-color, #EB292C);
}

.workflow-step-card .icon-tile i {
  font-size: 24px;
  color: var(--theme-color, #EB292C);
  transition: all 400ms ease;
}

.workflow-step-card:hover .icon-tile i {
  color: #ffffff;
}

.workflow-step-card h4 {
  font-size: 18px;
  line-height: 26px;
  color: var(--secondary-color, #0A0F20);
  font-weight: 700;
  font-family: var(--title-font, 'Manrope', sans-serif);
  margin-bottom: 15px;
}

.workflow-step-card p {
  font-size: 15px;
  line-height: 22px;
  color: #000000;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .workflow-section {
    padding: 80px 0px;
  }
  .workflow-section .sec-title h2 {
    font-size: 30px;
    line-height: 38px;
  }
  .workflow-step-card {
    padding: 30px 20px;
  }
}
