/* Cards: grid of linked cards (icon or logo, title, text, link row) */
.as-card-grid {
  display: flex;
  flex-wrap: wrap;
}

.as-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--as-border);
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.as-card:hover {
  border-color: var(--as-color-primary-red);
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(202, 68, 65, 0.10), 0 3px 8px rgba(0, 0, 0, 0.03);
}

/* Icon box */
.as-card-icon-box {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--as-bg-light-red);
  border: 1px solid #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.as-card-icon {
  width: 20px;
  height: 20px;
  color: var(--as-color-primary-red);
  transition: all 0.25s ease;
}

.as-card:hover .as-card-icon-box {
  background-color: var(--as-color-primary-red);
  border-color: var(--as-color-primary-red);
}

.as-card:hover .as-card-icon {
  color: #ffffff;
}

/* Logo box (used instead of the icon box when a card has a logo) */
.as-card-logo-box {
  display: flex;
  align-items: center;
  height: 44px;
  margin-bottom: 16px;
}

.as-card-logo-box img {
  max-width: 130px;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Card Typography */
.as-card-title {
  font-family: var(--as-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #0f172a !important;
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.as-card:hover .as-card-title {
  color: var(--as-color-primary-red) !important;
}

.as-card-text {
  font-family: var(--as-font-body);
  font-size: 13px;
  color: #64748b !important;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Bottom Action Link */
.as-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f8fafc;
}

.as-card-link-text {
  color: var(--as-color-primary-red) !important;
  font-family: var(--as-font-heading);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.as-card-link-arrow {
  color: var(--as-color-primary-red);
  transition: transform 0.2s ease;
}

.as-card:hover .as-card-link-arrow {
  transform: translateX(4px);
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .as-card-grid {
    margin-left: -6px;
    margin-right: -6px;
  }

  .as-card-grid>[class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px !important;
  }

  .as-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .as-card-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .as-card-icon {
    width: 17px;
    height: 17px;
  }

  .as-card-logo-box {
    height: 36px;
    margin-bottom: 10px;
  }

  .as-card-logo-box img {
    max-width: 100px;
    max-height: 28px;
  }

  .as-card-title {
    font-size: 13.5px;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .as-card-text {
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .as-card-link {
    padding-top: 8px;
  }

  .as-card-link-text {
    font-size: 11.5px;
  }

  .as-card-link-arrow {
    width: 12px;
    height: 12px;
  }
}
