/**
 * SaaS Services Block Styles
 */

.saas-services-wrapper {
  padding: 20px 0;
}

.saas-services-description {
  margin-bottom: 30px;
  text-align: center;
}

.saas-services-description p:last-child {
  margin-bottom: 0;
}

.saas-services-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(3, 1fr);
}

.saas-services-grid[data-columns="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.saas-services-grid[data-columns="4"] {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive grid */
@media (max-width: 991px) {
  .saas-services-grid,
  .saas-services-grid[data-columns="3"],
  .saas-services-grid[data-columns="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .saas-services-grid,
  .saas-services-grid[data-columns="2"],
  .saas-services-grid[data-columns="3"],
  .saas-services-grid[data-columns="4"] {
    grid-template-columns: 1fr;
  }
}

/* Card base styles */
.saas-service-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.saas-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Card style: bordered */
.saas-service-card.bordered {
  border: 3px solid transparent;
  border-top-width: 5px;
}

/* Card style: colored */
.saas-service-card.colored {
  color: #ffffff;
}

.saas-service-card.colored .service-name,
.saas-service-card.colored .service-description {
  color: #ffffff;
}

.saas-service-card.colored .service-icon {
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.15);
}

.saas-service-card.colored .service-link {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5);
}

.saas-service-card.colored .service-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

/* Service icon */
.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  transition: all 0.3s ease;
}

.saas-service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Service name */
.service-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0 0 12px;
  line-height: 1.3;
}

/* Service description */
.service-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

/* Service link */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid currentColor;
  border-radius: 25px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-link:hover {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.05);
}

.service-link i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(3px);
}

.service-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-style: dashed;
}

/* Suspended badge - Not Available in Your Region */
.suspended-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #6c757d, #495057);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Suspended card styling */
.saas-service-card.suspended {
  opacity: 0.7;
}

.saas-service-card.suspended:hover {
  opacity: 0.85;
}

.saas-service-card.colored .suspended-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #6c757d;
}
