/**
 * @file
 * Card styles
 */

.card {
  background-color: var(--color-neutral--2);
  padding: 1rem .75rem 1.5rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-width: 156px;
}
.card__text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.card__text h2 {
  text-transform: uppercase;
  color: var(--color-primary--4);
}
.card__text h2,
p.h2 {
  font-size: .875rem;
  font-family: "catamaran", sans-serif;
  text-align: center;
  color: var(--color-primary--4);
  line-height: 110%;
}
p.h2 {
  margin-top: -.2rem;
}


.card__link {
  display: flex;
  flex-direction: column;
}
.card__link a{
  color: var(--color-secondary--1);
  text-decoration: underline;
  text-decoration-color: hsla(209, 51%, 26%, 0.5);
  width: 100%;

  padding: 0.2rem 0;
  font-weight: 600;
  position: relative;
  font-size: 0.75rem;
}

.card__link a #text{
display: none
}

.card__link a:hover {
  text-decoration: inherit;
}
.card__link a:hover::after {
  /* text-decoration: none;
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: var(--color-primary--3);
  bottom: 10px;
  left: 0;
  opacity: 35%;
  z-index: 1; */
}




@media all and (min-width: 1000px) {
  .card__text {
    gap: .5rem;
  }
  .card__text h2,
  p.h2 {
    font-size: 1rem;
  }
  .card__link a{
    padding: 0.5rem 0;
    font-size: 1rem;
    /* width: max-content; */
  }
  .card__link a::before{
    content: url(../../images/card/blue-arrow.svg);
    margin-right: 0.5rem;
  }
  .card__link a:hover::before {
    width: 25px;
  }
  .card__link a::before {
    content: "";
    margin-right: 0.5rem;
    transition: 0.2s;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(../../images/card/blue-arrow.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-bottom: -4px;
  }
}





@media all and (min-width: 1540px) {
  .card {
    padding: 1.5rem;
  }
  .card__text h2,
  p.h2 {
    font-size: 1.313rem;
  }
}
