.ed-blog {
  &__img {
    width: 100%;
  }
}

.ed-blog {
  &__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;
    row-gap: 1rem;
    padding: 3rem 0;
    &.grid-2 {
      grid-template-columns: 1fr 1fr;
    }
  }
  &__list-items {
    list-style: none;
    margin-top: 1rem;
    li {
      // display: inline-flex;
      // display: -webkit-box;
      // display: -moz-box;
      display: flex;
      margin-bottom: 0.5rem;
      width: 100%;
    }
    a {
      // text-decoration: underline;
      line-height: 35px;
      color: darken(#fff, 2);
      transition: border-bottom 0.3s ease;
      border-bottom: 2px solid transparent;
      &:hover {
        border-bottom: 2px solid white;
      }
    }
  }
  &__list-title {
    color: var(--title-color);
  }
  &__list-icon {
    color: var(--title-color);
    height: 14px;
    width: 14px;
    min-width: 14px;
    margin-top: 10px;
    stroke-width: 3;
    margin-right: 8px;
  }
}

/* CARD BLOG HOME */
.ed-blog {
  &__card {
    background-color: var(--blog-bg);
    border-radius: 16px;
    cursor: pointer;
    padding: 1rem;
    // box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    &:hover {
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }
  }
  &__title {
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: var(--blog-text);
  }
  &__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
  }
  &__avatar {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    &-name {
      font-size: 12px;
      text-transform: uppercase;
      font-weight: bold;
      color: var(--blog-text);
    }
  }
  &__icon {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    color: var(--icon-services);
  }
  &__date {
    color: var(--blog-text);
    @apply text-sm;
  }
}

@media (max-width: 992px) {
  .ed-blog {
    &__grid {
      grid-template-columns: repeat(2, 1fr);
      &.grid-2 {
        grid-template-columns: 1fr;
      }
    }
    &__list {
      grid-area: 1 / span 2;
    }
  }
}

@media (max-width: 768px) {
  .ed-blog {
    &__grid {
      grid-template-columns: 1fr;
    }
    &__list {
      grid-area: auto;
    }
  }
}

/* CARD BLOG */

.ed-blogs {
  &__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1.5rem;
    column-gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
  &__card {
    background-color: var(--blog-bg-card);
    border-radius: 16px;
    cursor: pointer;
    padding: 1rem;
    // box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    &:hover {
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }
  }
  &__title {
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    color: var(--blog-text);
  }
  &__tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }
  &__img {
    width: 100%;
    height: 180px;
    min-height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
  }
  &__avatar {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    &-name {
      font-size: 12px;
      text-transform: uppercase;
      font-weight: bold;
      color: var(--blog-text);
    }
  }
  &__icon {
    margin-right: 4px;
    width: 16px;
    height: 16px;
    color: var(--icon-services);
  }
  &__date {
    color: var(--blog-text);
    font-size: 14px;
    font-weight: 600;
  }
}
@media (max-width: 992px) {
  .ed-blogs {
    &__grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}
@media (max-width: 768px) {
  .ed-blogs {
    &__grid {
      grid-template-columns: 1fr;
    }
  }
}
