.automation-templates-section {
  padding: 100px 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #F0F8FF 40%,
    #F0F8FF 80%,
    #ffffff 100%
  );
}

.automation-templates-section .heading-container {
  text-align: center;
  margin-bottom: 48px;
}

.automation-templates-section .heading-container h2 {
  line-height: 1.4;
}

.automation-templates-section .heading-container h2 span {
  color: #1d4ed8;
}

.automation-templates-section .heading-container .distinct--text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #333241;
  margin: 0 auto;
  max-width: 820px;
}

.automation-templates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  justify-content: center;
}

.automation-templates__item {
  background: #ffffff;
  border: 1px solid #e3e4ee;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 340px;
  transition: all 0.3s ease;
}

.automation-templates__icon-wrapper {
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.automation-templates__icon-wrapper.bg-yellow {
  background-color: #fceeda;
}

.automation-templates__icon-wrapper.bg-red {
  background-color: #fce6e4;
}

.automation-templates__icon-wrapper.bg-brown {
  background-color: #f4e9e7;
}

.automation-templates__icon-wrapper.bg-mint {
  background-color: #e3f2f2;
}

.automation-templates__icon-wrapper.bg-purple {
  background-color: #e9e4f1;
}

.automation-templates__icon-wrapper.bg-crimson {
  background-color: #eee2e7;
}

.automation-templates__icon-wrapper.bg-pink {
  background-color: #ffe5f5;
}

.automation-templates__icon-wrapper.bg-blue {
  background-color: #dbefff;
}

.automation-templates__icon-wrapper.bg-green {
  background-color: #e5f3e2;
}

.automation-templates__icon {
  width: 28px;
  height: 28px;
  font-size: 28px;
  display: block;
}

.automation-templates__icon-wrapper.bg-yellow .automation-templates__icon {
  color: #f0ac4c;
}

.automation-templates__icon-wrapper.bg-red .automation-templates__icon {
  color: #f87168;
}

.automation-templates__icon-wrapper.bg-brown .automation-templates__icon {
  color: #cc8f7f;
}

.automation-templates__icon-wrapper.bg-mint .automation-templates__icon {
  color: #75bdbf;
}

.automation-templates__icon-wrapper.bg-purple .automation-templates__icon {
  color: #8f78bb;
}

.automation-templates__icon-wrapper.bg-crimson .automation-templates__icon {
  color: #c67193;
}

.automation-templates__icon-wrapper.bg-pink .automation-templates__icon {
  color: #eb71ba;
}

.automation-templates__icon-wrapper.bg-blue .automation-templates__icon {
  color: #008cff;
}

.automation-templates__icon-wrapper.bg-green .automation-templates__icon {
  color: #87c461;
}

.automation-templates__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}

.automation-templates__title {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #202223;
  margin: 0;
  width: 100%;
}

.automation-templates__description {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #333241;
  margin: 0;
  width: 100%;
}

/* Media Queries */
@media (max-width: 1080px) {
  .automation-templates__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .automation-templates__item {
    width: calc(50% - 12px);
  }
}

@media (max-width: 800px) {
  .automation-templates__item {
    min-width: 100%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .automation-templates-section {
    padding: 60px 0;
  }

  .automation-templates-section .heading-container {
    margin-bottom: 48px;
  }

  .automation-templates-section .heading-container h2 {
    font-size: 28px;
    line-height: 34px;
  }
}

@media (max-width: 640px) {
  .automation-templates-section {
    padding: 48px 0;
  }

  .automation-templates-section .heading-container {
    margin-bottom: 24px;
  }

  .automation-templates-section .heading-container .distinct--text {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .automation-templates__icon-wrapper {
    width: 48px;
    height: 48px;
  }
}
