/* -------------------------------- 

File#: _1_card-v14
Title: Card v14
Descr: Container of information used as teaser for further content exploration
Usage: codyhouse.co/license

-------------------------------- */

/* -------------------------------- 

Icons 

-------------------------------- */

.cd-icon {
  --size: 1em;
  font-size: var(--size);
  height: 1em;
  width: 1em;
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.cd-icon use { /* SVG symbols - enable icon color corrections */
  color: inherit;
  fill: currentColor;
}

/* -------------------------------- 

Component 

-------------------------------- */
.card-v14 h4{
    text-align: center;
    color: var(--color-accent-dark);
    font-size: var(--ct8-text-md);
}
.card-v14 {
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px hsla(230, 13%, 9%, 0.05),
              0 0.9px 1.25px hsla(230, 13%, 9%, 0.025),
              0 3px 5px hsla(230, 13%, 9%, 0.05),
              0 12px 20px hsla(230, 13%, 9%, 0.09);
  border-radius: 0.375em;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
  background: #ebebeb;
  background: linear-gradient(360deg, rgb(249 243 232) 0%, rgb(228 230 245) 80%);
  align-items: center;
}

.card-v14:hover {
  
  box-shadow: 0 0 0 1px hsla(230, 13%, 9%, 0.05),
              0 0.3px 0.4px hsla(230, 13%, 9%, 0.02),
              0 0.9px 1.5px hsla(230, 13%, 9%, 0.045),
              0 3.5px 6px hsla(230, 13%, 9%, 0.09);
}

.card-v14__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: var(--color-accent-darker);
  box-shadow: var(--shadow-sm);
  /* border-bottom: 1px solid var(--color-accent-dark); */
  /* border-top: 1px solid var(--color-contrast-lower); */
}
.card-v14__icon-wrapper i{
    color: var(--color-accent-dark);
    font-size: 1.5em;
}
.card-v14__icon-wrapper h4{}
.card-v14__icon {
  --size: 24px;
  color: hsl(342, 89%, 48%);
}

.card-v14__description,
.card-v14__link {
  font-size: 0.9375rem;
}

.card-v14__description {
  color: var(--color-contrast-medium);
  line-height: 1.58;
  margin: 0.75rem 0 1rem;
  text-align: center;
}

.card-v14__link {
  text-align: right;
  margin-top: auto;
  color: hsl(250, 84%, 54%);
}

/* -------------------------------- 

Demo stuff 

-------------------------------- */

.demo-card-v14-grid {
  display: grid;
  gap: 1.5rem;
}

.demo-card-v14-grid > * {
  min-width: 0;
}

.demo-card-v14-grid2 {
  display: grid;
  gap: 1.5rem;
}

.demo-card-v14-grid2 > * {
  min-width: 0;
}

@media (min-width: 42.5rem) {
  .demo-card-v14-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .demo-card-v14-grid2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 85.5rem) {
  .demo-card-v14-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .demo-card-v14-grid2 {
    grid-template-columns: repeat(2, 1fr);
  }
}