/* ------------------------------------ *\
  CONTENTS
\* ------------------------------------ */

/**
 * CONTENTS..............You’re reading it!
 * CARDS STYLE ............................
 * MEDIA QUERIES ..........................
*/

/* ------------------------------------ *\
  ==CARD STYLE
\* ------------------------------------ */
.paragraph.paragraph--type--card-x {
  background: #fff 0 0 no-repeat padding-box;
  box-shadow: 0 3px 6px #00000029;
  border: 1px solid #1f63de;
  border-radius: 0;
  width: 100%;
}

.paragraph.paragraph--type--card-x .card-x__body {
  display: flex;
  flex-direction: column;
  align-content: space-between;
  justify-content: space-between;
  height: 100%;
  padding: 1.5rem;
}

.paragraph.paragraph--type--card-x .card-x__body h2,
.paragraph.paragraph--type--card-x .card-x__body h3,
.paragraph.paragraph--type--card-x .card-x__body h4 {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--bs-blue);
}

.paragraph.paragraph--type--card-x .card-x__text {
  font-size: 1.125rem;
  font-weight: 300;
  margin-bottom: 0;
}

.paragraph.paragraph--type--card-x .card-x__link-txt {
  position: relative;
  font-size: 1.563rem;
  font-weight: 500;
  color: var(--bs-black);
  transition: all 0.5s;
  width: fit-content;
}

.paragraph.paragraph--type--card-x .card-x__image {
  justify-content: center;
  display: flex;
  padding: 1rem;
  align-items: center;
}

.card-x__body {
  position: relative;
  z-index: 0;
}

.paragraph.paragraph--type--card-x
  a.card-x__link:where(:hover, :focus, :active)
  ~ div
  > .card-x__body
  > .card-x__link-txt {
  color: var(--bs-blue);
}

.paragraph.paragraph--type--card-x .card-x__link-txt:after {
  content: '';
  position: absolute;
  width: 100%;
  border-bottom: 2px solid var(--bs-purple);
  bottom: 0;
  left: 0;
}

/* ------------------------------------ *\
  ==MEDIA QUERIES
\* ------------------------------------ */
@media screen and (max-width: 575.98px) {
  .paragraph.paragraph--type--card-x .card-x__title {
    font-size: 1.375rem;
  }

  .paragraph.paragraph--type--card-x .card-x__text,
  .paragraph.paragraph--type--card-x .card-x__link-txt {
    font-size: 1rem;
  }
}
