/****COMMON CARD****/
.common-card {

  .container-image {
    position: relative;
    aspect-ratio: 16/9;
    .container-border-white{
      position:absolute;
      width: 100%;
      height: 100%;
      padding: 15px 15px 0 15px;
    }
    .container-border-white{
      .border-white{
        height: 100%;
        border: 4px solid white;
        border-bottom: 0;
      }
    }
    img {
      background-color: #c9c5c5;
      height:100%;
      display:block;
    }
  }
  .container-title {
    background-color: #A32622;
    padding: 16px;
    font-size: 22px;
    font-weight: 600;
    height:95px;
    &.color-red {
      background-color: #A32622;
      color: white;
    }
    &.color-gray{
      background-color: #F0F0F0;
      color: black;
    }
    a {
      text-decoration:none;
      display: flex;
      align-items: center;
      cursor:pointer;
      img {
        padding-left: 15px;
        margin-top: 4px;
      }
    }
  }
  .container-badge {
    position: absolute;
    width: 85px;
    height: 85px;
    background: #A32622;
    border-radius: 50%;
    right: 16px;
    top: 16px;
    display: flex;
    text-align: center;
    align-items: center;
    .badge-title {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-transform: uppercase;
      font-weight: 600;
      font-size: 20px;
      color: white;
      rotate: -25deg;
    }
  }
}

/****New Card****/
.news-card {
  .container-image {
    position: relative;
    aspect-ratio: 16/9;
    img {
      background-color: #c9c5c5;
      height:100%;
      display:block;
    }
  }

  .container-info {
    background-color: #F0F0F0;
    color: black;
    padding: 16px;
    display:flex;
    flex-direction: column;

    .container-info-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
      font-size: 20px;
    }

    .container-title {
      font-size: 22px;
      font-weight: 600;
      height: 66px;

      a {
        text-decoration: none;
        display: flex;
        align-items: center;
        cursor: pointer;
      }
    }

    .container-comments {
      padding: 8px 0;
      display: flex;
      border-top: 1px solid #949191;
      justify-content: space-between;
      font-size: 20px;
      margin-top: 8px;

      .action-comment{
        a {
          text-decoration: none;
        }

        img {
          margin-right: 5px;
        }
      }
    }
  }
}

.news-card.swiper-slide, .common-card.swiper-slide {
  width:523px !important;
}

.swiper-slide {
  height: auto !important;
}


@media screen and (max-width: 1700px) {
  .swiper-container {
    padding: 0 60px;

  }
  .swiper-slide, .common-card.swiper-slide, .news-card.swiper-slide {
    height: auto;
    width: 450px !important;
  }
}

@media screen and (max-width: 1000px) {
  .news-card {
    .container-info {
      .container-title {
        height: 99px;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .news-card.swiper-slide, .common-card.swiper-slide {
    width: 270px !important;
  }
  .news-card {
    .container-info {
      padding: 8px;
      .container-info-header {
        font-size: 16px;
      }
      .container-title {
        font-size: 18px;
        height: 81px;
      }
      .container-comments {
        font-size: 14px;
        .action-comment a img {
          height: 20px;
        }
      }
    }
  }
  .common-card {
    .container-title {
      padding: 8px;
      font-size: 18px;
    }
    .container-badge {
      top: 8px;
      right: 8px;
      width: 65px;
      height: 65px;
      .badge-title {
        font-size: 14px;
      }
    }
  }
}

@media screen and (max-width: 576px) {

  .news-card {
    .container-info {
      .container-title {
        height: unset;
      }
    }
  }
  .common-card {
    .container-title {
      height: unset;
    }
  }
  .news-card.swiper-slide .container-info .container-title {
     height: 60px;
  }
  .common-card.swiper-slide {
    .container-title {
      height: 90px;
    }
  }
}