/* ============================================================ Card Components ================== */

.mah-card {
  background-color: #ffffff;
  border: 1px solid var(--mah-border-color, #e5e7eb);
  border-radius: var(--mah-border-radius, 8px);
  padding: var(--mah-spacing-md);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.mah-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-color: var(--mah-color-blue);
}

.mah-card-title {
  font-family: var(--mah-font-alt);
  font-size: var(--mah-font-size-lg);
  font-weight: 600;
  color: var(--mah-color-heading-card);
  margin: 0;
}

.mah-card-icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 0;
  color: var(--mah-color-blue-light);
  line-height: 1;
  padding-top: 2px;
}

/*.mah-card-link {
  display: block;
  text-decoration: none;
  padding: 1rem;
  border-radius: 6px;
  background-color: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mah-card-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}*/

.mah-card--exam {
  border-left: 4px solid var(--mah-color-blue-light);
}

.mah-card--note {
  border-left: 4px solid var(--mah-color-yellow);
}

.mah-card--quiz {
  border-left: 4px solid var(--mah-color-purple);
}

.mah-card--school {
  border-left: 4px solid var(--mah-color-indigo);
}

.mah-card--cta {
  background-color: var(--mah-bg-light);
}

.mah-card--trust {
  border-color: #d1d5db;
}

.mah-card--child {
  border-left: 4px solid var(--mah-color-purple);
  background-color: var(--mah-bg-soft-lavender);
}

.mah-card--sibling {
  border-left: 4px solid var(--mah-color-orange);
  background-color: var(--mah-bg-soft-yellow);
}

.mah-card--subject {
  background-color: var(--mah-bg-soft-lavender);
}

.mah-card-meta {
  font-size: 0.75rem;
  color: var(--mah-text-muted);
  margin-top: 0.5rem;
}

/* Shadow large variant */
.mah-card--shadow-lg {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Vertical card content layout */
.mah-card-content--vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--mah-spacing-sm);
}

.mah-card-content--horizontal {
  display: flex;
  align-items: center;
  gap: var(--mah-spacing-sm);
}


/* Pill-shaped card variant */

.mah-card--pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  gap: var(--mah-spacing-sm);
  text-align: left;
}


.mah-card--pill .mah-card-icon {
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 9999px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

.mah-card--pill .mah-card-title {
  font-size: var(--mah-font-size-sm);
    font-weight: 500;
}


.mah-card--pill .mah-card-meta {
  margin-top: 0.15rem;
  line-height: 1;
}

.mah-card--pill.lavender {
  background-color: #ede9fe;
  border: 1px solid #c4b5fd;
}

.mah-card--pill.peach {
  background-color: #ffe4e1;
  border: 1px solid #f4a261;
}

.mah-card--pill.blue {
  background-color:  var(--mah-color-bg-soft-blue, #eff6ff);
  border: 1px solid #60a5fa;
}

.mah-card--pill.green {
  background-color: var(--mah-color-bg-soft-green, #f0fdf4);
  border: 1px solid #34d399;
}
.mah-card--pill.yellow {
  background-color: var(--mah-color-bg-soft-yellow, #fef3c7);
  border: 1px solid #e2e200;
}


.mah-card--pill:hover {
  background-color: #ffffff;
}



.mah-card-excerpt {
  font-size: 0.875rem;
  color: var(--mah-text-muted, #6b7280);
  margin: 5px 0 0;
  line-height: 1.4;
}

