/** MD + AI Process Section Stylesheet ***/

.md-ai-section {
  position: relative;
  padding: 120px 0px;
  background-color: #ffffff; 
  overflow: hidden;
}

.md-ai-section .sec-title {
  margin-bottom: 25px;
}

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

.md-ai-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);
}

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

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

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

/* Benefits Grid & Cards */
.md-ai-section .benefits-title-wrap {
  margin-top: 60px;
  margin-bottom: 40px;
}

.md-ai-section .benefits-title-wrap h3 {
  font-size: 28px;
  line-height: 36px;
  color: var(--secondary-color, #0A0F20);
  font-weight: 700;
  font-family: var(--title-font);
  text-align: center;
}

.md-ai-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);
  transition: all 400ms ease;
  z-index: 1;
}

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

.md-ai-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;
}

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

.md-ai-card .icon-tile i {
  font-size: 24px;
  color: #eb292c;
  transition: all 400ms ease;
}

.md-ai-card:hover .icon-tile i {
  color: #ffffff;
}

.md-ai-card h4 {
  font-size: 20px;
  line-height: 28px;
  color: var(--secondary-color, #0A0F20);
  font-weight: 700;
  font-family: var(--title-font);
  margin-bottom: 15px;
}

.md-ai-card p {
  font-size: 15px;
  line-height: 24px;
  color: #666666;
  margin: 0;
}

/* Offset positioning for the 4th and 5th cards to center them in Bootstrap row */
@media (min-width: 992px) {
  .justify-content-center-lg {
    justify-content: center !important;
  }
}

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