/**
 * @file
 * sHTG Resource Card component styles.
 *
 * Two-column layout: image (left, fixed width) + content stack (right, flex).
 * No outer card decoration — content sits on the section/page background.
 * Values derived from Figma P2-Tryngolza-Patient-Website-may11.
 */

.layout-container {

  /* ==========================================================================
     Card — two-column flex row
     ========================================================================== */

  .shtg-resource-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    min-height: 140px;
  }

  .shtg-resource-card__card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
  }

  /* ==========================================================================
     Left column — image + download icon badge
     ========================================================================== */

  .shtg-resource-card__image-col {
    position: relative;
    flex-shrink: 0;
    width: 106px;
    height: 100%;
  }

  .shtg-resource-card__image-wrap {
    width: 98px;
    height: 127px;
    /*overflow: hidden;*/
  }

  .shtg-resource-card__image {
    display: block;
    width: 98px;
    height: 127px;
    object-fit: cover;
    transform: rotate(3.84deg);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .shtg-resource-card__icon-badge {
    position: absolute;
    bottom: -15px;
    right: -20px;
    width: 54px;
    height: 54px;
    line-height: 0;
  }

  .shtg-resource-card__icon-badge svg {
    display: block;
  }

  /* ==========================================================================
     Right column — text stack
     ========================================================================== */

  .shtg-resource-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    height: 100%;
  }

  /* ==========================================================================
     Typography
     ========================================================================== */

  .shtg-resource-card__heading,
  .shtg-resource-card__heading p {
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.15;
    color: #4f08b0;
    margin: 0;
    text-decoration: none !important;
    text-decoration-style: unset !important;

  }

  .shtg-resource-card__description,
  .shtg-resource-card__description p {
    font-family: Poppins, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    letter-spacing: 0.2px;
    color: #000000;
    margin: 0;
    text-decoration: none !important;
    text-decoration-style: unset !important;
  }

  /* ==========================================================================
     Download link
     ========================================================================== */

  .shtg-resource-card__link-wrap {
    position: relative;
    z-index: 2;
    margin-top: auto;
  }

  .shtg-resource-card__link {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    color: #fa7821;
    text-decoration: none;
    text-transform: uppercase;
  }

  .shtg-resource-card__link:hover,
  .shtg-resource-card__link:focus {
    text-decoration: none;
  }

  /* ==========================================================================
     Card hover states
     ========================================================================== */

  .shtg-resource-card:hover a {
    color: #21034A;
    text-decoration: none;
  }

  .shtg-resource-card:hover .shtg-resource-card__image {
    transform: scale(1.2) rotate(3.84deg);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.45);
  }

  .shtg-resource-card:hover .shtg-resource-card__heading,
  .shtg-resource-card:hover .shtg-resource-card__heading p {
    font-weight: 700;
  }

  .shtg-resource-card:hover .shtg-resource-card__link {
    text-decoration: none;
  }

  .shtg-resource-card__icon-default-fill,
  .shtg-resource-card__icon-hover-fill {
    transition: opacity 0.3s ease;
  }

  .shtg-resource-card__icon-hover-fill {
    opacity: 0;
  }

  .shtg-resource-card:hover .shtg-resource-card__icon-default-fill {
    opacity: 0;
  }

  .shtg-resource-card:hover .shtg-resource-card__icon-hover-fill {
    opacity: 1;
  }

  .shtg-resource-card:hover .shtg-resource-card__icon-border {
    stroke: #4F08B0;
  }

  /* ==========================================================================
     Responsive — mobile
     ========================================================================== */

  @media (max-width: 767px) {
    .shtg-resource-card {
      gap: 36px;
    }

    .shtg-resource-card__heading,
    .shtg-resource-card__heading p {
      font-weight: 600;
      font-size: 14px;
      line-height: 1.3;
    }

    .shtg-resource-card__description,
    .shtg-resource-card__description p {
      font-size: 12px;
      line-height: 16px;
    }

    .shtg-resource-card__link {
      font-size: 14px;
    }
  }
}
