@import '../../scss/mixin';


.customCard {
  /* width: max(267px, min(420px, u(25))); */
  width: 100%;
  max-width: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(0deg, #F6E9CB 0%, #F6E9CB 100%), #FAF3E3;
  color: #000;
  overflow: hidden;
  box-shadow: shadow(sm);
  margin-top: 0 !important;

  @media (max-width: 1440px) {
    max-width: 267px;
  }

  @media (max-width: 991px) {
    max-width: 328px;
  }

  @media (max-width: 767px) {
    max-width: none;
  }
}

.customCardMedia {
  position: relative;
}

.customCardAsset {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 14 / 13;
  border-radius: 0;
  overflow: hidden;
  padding: size(4) size(2);

  &>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.customCardContent {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 size(2) size(4);
  gap: size(3);
  height: 100%;

  button,
  a {
    text-align: center;
    font-family: var(--llm-font-secondary) !important;
    border-radius: 100px !important;
    border: 1px solid #003A6B;
    background: #FFD300 !important;
    padding: var(--llm-size-2, 1rem) var(--llm-size-3, 1.5rem) !important;
    min-height: unset !important;
    width: fit-content;
    min-width: auto;
    display: inline-block !important;
    margin: 0 auto;
    text-decoration: none !important;
    opacity: 1 !important;

    span {
      color: #003A6B !important;
      font-family: var(--llm-font-secondary) !important;
      font-size: 18px !important;
      font-style: normal !important;
      font-weight: 700 !important;
      line-height: 1 !important;
      text-transform: uppercase;
    }

    &:hover {
      border-color: #FFD300 !important;
      background: #003A6B !important;

      span {
        color: #fff !important;
      }
    }
  }
}

.customCardTitle {
  color: #003A6B;
  text-align: center;
  font-family: var(--llm-font-primary);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  line-height: 140%;
}

.customCardAbstract {
  @include text(body5);
}