/*------------------------------------*\
    RELATED / EXPLORE CARDS
    - Default: horizontal card layout
    - Mobile: stacked layout via media query below
  \*------------------------------------*/
  .related-essays {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
  }

  .related-essays__heading {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
  }

  .related-essays__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
  }

  .card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-4px);
  }

  .card__link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    width: 100%;
  }

  .card__media {
    flex-shrink: 0;
    flex-basis: 120px;
    overflow: hidden;
  }

  .card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
  }

  .card:hover .card__image { transform: scale(1.05); }

  .card__body {
    padding: 1rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 .25rem 0;
    line-height: 1.3;
  }

  .card__subtitle { font-size: .9rem; color: #666; margin: 0 0 .5rem 0; }
  .card__excerpt { font-size: .9rem; color: #444; line-height: 1.6; margin: 0; }

  /*------------------------------------*\
    RELATED / EXPLORE CARDS (Mobile)
    - Stack media above text for narrow screens
  \*------------------------------------*/
  @media (max-width: 560px) {
    .card__link { flex-direction: column; }

    .card__media {
      flex-basis: auto;
      width: 100%;
    }

    .card__image {
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      display: block;
    }

    .card__body { padding: 0.95rem 1rem; }

    .card__title { line-height: 1.25; }

    .card__excerpt { margin-top: 0.15rem; }
  }