/* -*- coding: utf-8 -*- */

.article-index {
  align-items: stretch;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(29, 84, 152, 0.25);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: 10px;
  width: 380px;
  min-height: 510px;
}

.article-index .article-image {
  align-items: center;
  border-radius: 18px;
  display: flex;
  max-height: 266px;
  justify-content: center;
  min-height: 266px;
  overflow: hidden;
  width: 354;
}

.article-index .article-text {
  height: 100%;
  padding: 10px;
}

.article-index .title {
  font-weight: 500;
  font-size: 16px;
  max-height: 4.5em;
  min-height: 4.5em;
}

.article-text {
  position: relative;
  max-width: 600px;
}

.article-text .abstract {
  font-size: 16px;
  line-height: 1.5; /* 1.5 * 16px = 24px per line */
  margin-top: 1em;
  overflow: hidden;
  max-height: calc(24px * 4); /* Limits height to 4 lines */
  position: relative;
}

/* Create a fading effect to mask extra characters */
.article-text .abstract::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px; /* Adjust this to control how many characters are hidden */
  height: 24px; /* Matches line height */
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0),
    white 5%
  );
}

.article-text .continue {
  display: inline-block;
  font-weight: 600;
  position: absolute;
  bottom: 31px;
  right: 0;
  background: white; /* Prevent overlap */
  padding-left: 5px;

  z-index: 10;
}

.article-text .continue span {
  margin-right: 4px;
}

/* .article-text .article-dated,
.article-text .article-by,
.article-text .share-article {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
} */

.article-text figure img {
  width: 16px;
  height: 16px;
}

.article-index .continue img {
  display: none;
}

.article-index .share-article,
.article-index .article-by,
.article-index .article-dated {
  display: none;
}
@media only screen and (max-width: 768px) {
  .article-index {
    width: 300px;
  }
}
