.ejs-feature-tiles-container {
  width: 100%;
}

.ejs-feature-tiles-header {
  margin-bottom: 40px;
  text-align: center;
}

.ejs-feature-tiles-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #000;
}

.ejs-feature-tiles-content {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.ejs-feature-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.ejs-feature-tile {
  display: block;
  text-align: left;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #ecf0f3;
  background-color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.ejs-feature-tile:hover {
  /* transform: translateY(-4px); */
  text-decoration: none;
  color: inherit;
}

.ejs-feature-tile-icon {
  margin-bottom: 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.ejs-feature-tile-icon-wrapper {
  position: relative;
  margin-bottom: 20px;
  width: fit-content;
}

.ejs-feature-tile-icon-wrapper.ejs-feature-tile-show-image-no {
  display: none;
}

.ejs-feature-tile-dot {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 30px;
  left: 20px;
  display: none;
}

.ejs-feature-tile-dot.dot-color-light {
  background-color: #438ae6;
  display: block;
}

.ejs-feature-tile-dot.dot-color-dark {
  background-color: #184478;
  display: block;
}

.ejs-feature-tile-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ejs-feature-tile-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #000;
}

.ejs-feature-tile-content {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* Alternate Colors */
.ejs-feature-tiles-container.alternate-colors-yes .ejs-feature-tile:nth-child(even) {
  background-color: #ecf0f3;
}

.ejs-tile-type-normal.ejs-tile-type-link {
  display: none;
}

/* Link tile — overlay keeps the whole tile clickable without nesting <a> tags */
.ejs-feature-tile.ejs-tile-type-link {
  position: relative;
  cursor: pointer;
}

.ejs-feature-tile.ejs-tile-type-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Keep content links and other interactive elements above the overlay */
.ejs-feature-tile.ejs-tile-type-link .ejs-feature-tile-content a,
.ejs-feature-tile.ejs-tile-type-link .ejs-feature-tile-content button {
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .ejs-feature-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .ejs-feature-tiles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ejs-feature-tiles-title {
    font-size: 24px;
  }

  .ejs-feature-tile {
    padding: 20px;
  }
}
