.custom-card-box {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  overflow: hidden; /* clips image properly */
  transition: box-shadow .3s ease;
  padding: 20px;
}

.custom-card-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  /* fallback for older browsers: use padding-top to enforce square */
}
.card-image::before {
  content: '';
  display: block;
  padding-top: 100%; /* aspect ratio 1:1 */
}

/* If you want modern browsers to prefer aspect-ratio, you can override */
@supports (aspect-ratio: 1 / 1) {
  .card-image {
    aspect-ratio: 1 / 1;
  }
  .card-image::before {
    display: none;
  }
}

.card-content {
  padding: 1.5em;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 1em;
  color: var(--ar-header-color);
}

/* Bullet list with dynamic text + bullet color */
.card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5em;
  text-align: left;
  color: inherit; /* Text color comes from inline style */
}

.card-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
}

.card-list li::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--bullet-color, var(--ar-accent)); /* fallback */
  border-radius: 0; /* square by default */
  display: inline-block;
}

.card-paragraph {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Button uses CSS variables for dynamic colors */
.card-btn {
  display: inline-block;
  padding: 0.6em 1.4em;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 10px;
  font-size: .9em;
  background-color: var(--btn-bg, transparent);
  color: var(--btn-text, inherit);
  border: none;
  cursor: pointer;
}
.card-btn:hover {
  background-color: var(--btn-hover-bg, var(--btn-bg));
  color: var(--btn-hover-text, var(--btn-text));
}
