/**
 * eines.css
 */

body.eines #main {
  padding-top: 0;
}

.eines-page {
  background: var(--muted-bg);
}


/* INTRO */

.eines-intro {
  padding: 48px 0 0;
  background: var(--muted-bg);
}

.eines-intro p {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.75;
}

.eines-intro p + p {
  margin-top: 0.8em;
}


/* BLOCS */

.eines-list-section {
  padding: 54px 0 90px;
}

.guides-category-card {
  padding: 28px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.guides-category-card + .guides-category-card {
  margin-top: 34px;
}

.guides-category-heading h2 {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.guides-category-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--orange);
}

@media (min-width: 900px) {
  .guides-category-card {
    padding: 42px;
  }

  .guides-category-card + .guides-category-card {
    margin-top: 44px;
  }
}


/* RÚBRIQUES */

.eines-rubriques-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.eines-rubrica-link {
  position: relative;
  text-align: center;
  padding: 28px 28px 110px 28px;
  border-radius: 23px;
  background-color: var(--blue);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.35rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: none;
  box-shadow: var(--shadow-small);
  overflow: hidden;

  background-image: url(img/icona-rubrica.png);
  background-size: 50px 50px;
  background-repeat: no-repeat;
  background-position: bottom 30px center;
  }

.eines-rubrica-link::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 20px;
  top: 50%;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 14px;
}

.eines-rubrica-link span {
  position: relative;
  z-index: 1;
}

.eines-rubrica-link:hover,
.eines-rubrica-link:focus {
  color: var(--white);
  background-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

@media (min-width: 720px) {
  .eines-rubriques-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eines-rubrica-link {
    padding: 30px 28px 120px 28px;
    background-size: 60px 60px;
  }
}

