/*
 * DGA "About the Entity" landing hub -- card grid styling.
 * Matches DGA's real About template card pattern (icon in a light circle,
 * title, arrow action) taken from the guideline's own React source
 * (browser saved files guidelines/about/index.tsx): rounded-16px white
 * cards, light-green icon circle, arrow button bottom-right.
 * See template-dga-about-landing.blade.php for the full context.
 */

.dga-about-landing {
  background-color: var(--background-primary-25);
}

.dga-about-landing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-6);
}
@media (min-width: 768px) {
  .dga-about-landing__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) {
  .dga-about-landing__grid { grid-template-columns: 1fr 1fr 1fr; }
}

.dga-about-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-4);
  padding: var(--spacing-6);
  background-color: var(--background-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  position: relative;
  transition: box-shadow .15s ease, transform .15s ease;
}
.dga-about-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dga-about-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--background-primary-50);
  color: var(--icon-primary);
}

.dga-about-card__title {
  font-family: var(--font-family-arabic);
  color: var(--text-display);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-text-lg);
  line-height: var(--line-height-text-lg);
  margin: 0;
}

.dga-about-card__desc {
  font-family: var(--font-family-arabic);
  color: var(--text-primary-paragraph);
  font-size: var(--font-size-text-small);
  line-height: var(--line-height-text-small);
  margin: 0;
}

.dga-about-card__arrow {
  /* Normal flow, pushed to the bottom-right of the card's own flex
     column via margin (matching DGA's real source pattern, ml-auto
     mt-auto) -- not absolutely positioned. Absolute positioning made
     this float on top of the description text instead of reserving its
     own space, so longer descriptions ran underneath it. */
  align-self: flex-end;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background-color: var(--background-primary-50);
  color: var(--icon-primary);
  transition: background-color .15s ease;
}
.dga-about-card:hover .dga-about-card__arrow {
  background-color: var(--button-background-primary-default);
  color: var(--colors-base-white);
}
[dir="rtl"] .dga-about-card__arrow svg {
  transform: scaleX(-1);
}
