:root {
  --length-50: clamp(20px, calc(3vw + 5px), 50px);
  --length-30: clamp(15px, calc(1.5vw + 7.5px), 30px);
}

.xili-news-list {
  padding: var(--length-120) 0 var(--length-100) 0;
  background: #F2F2F2;
}

.xili-newsl-wapper {
  display: flex;
  gap: var(--length-50);
}

.xili-newsl-left {
  flex: 1;
}

.xili-newsl-right {
  width: 31.25%;
  flex-shrink: 0;
}

.xili-newsl-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--length-50);
}

.xili-newsl-item {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.xili-newsl-item-pic {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.xili-newsl-item-pic img {
  aspect-ratio: 500 / 301;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.xili-newsl-item-content {
  padding: var(--length-40);
}

.xili-newsl-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xili-newsl-item-info span {
  color: #666;
  font-size: var(--font-14);
  font-weight: 400;
  line-height: 1.2;
}

.xili-newsl-item-info-line {
  height: 20px;
  background: #D9D9D9;
  width: 1px;
  display: block;
}

.xili-newsl-item-title {
  color: #333;
  font-size: var(--font-24);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.48px;
  margin-top: var(--length-20);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 3em;
}

.xili-newsl-item-link {
  display: flex;
  gap: 10px;
  margin-top: var(--length-20);
  align-items: center;
  width: fit-content;
  position: relative;
}

.xili-newsl-item-link span {
  color: #333;
  font-size: var(--font-20);
  font-weight: 400;
  line-height: 1.3;
}

.xili-newsl-item-link svg {
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.xili-newsl-item-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #333;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.xili-newsl-item-link:hover::after {
  visibility: visible;
  opacity: 1;
}

.xili-newsl-item-link:hover svg {
  transform: rotate(45deg);
}

.xili-newsl-categories {
  margin-top: var(--length-50);
  padding: var(--length-30) var(--length-40);
  border-radius: 12px;
  background: #FFF;
}

.xili-newsl-categories-title {
  color: #333;
  font-size: var(--font-24);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.48px;
}

.xili-newsl-categories-list {
  display: flex;
  flex-direction: column;
}

.xili-newsl-categories-list li {
  list-style: none;
  margin-top: 10px;
}

.xili-newsl-categories-list li a {
  color: #333;
  font-size: var(--font-20);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.4px;
}

.xili-newsl-categories-list li a:hover {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

/*-------------------------------- recent news --------------------------------*/
.xili-newsl-recentnews {
  margin-top: var(--length-50);
  padding: var(--length-40);
  border-radius: 12px;
  background: #FFF;
}

.xili-newsl-recentnews-title {
  color: #333;
  font-size: var(--font-24);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.48px;
}

.xili-newsl-recentnews-list {
  display: flex;
  flex-direction: column;
}

.xili-newsl-recentnews-item {
  display: flex;
  align-items: flex-start;
  margin-top: var(--length-30);
  gap: var(--length-20);
}

.xili-newsl-recentnews-item-pic {
  width: 90px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}

.xili-newsl-recentnews-item-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xili-newsl-recentnews-item-content {
  flex: 1;
}

.xili-newsl-recentnews-item-date {
  color: #666;
  font-size: var(--font-14);
  font-weight: 400;
  line-height: 1.5;
}

.xili-newsl-recentnews-item-title {
  color: #333;
  font-size: var(--font-20);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.4px;
  margin-top: 10px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xili-newsl-recentnews-item-title:hover {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.down-icon {
  position: relative;
}

.down-icon::after {
  content: "\e66f";
  font-family: "qico";
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  display: none;
}

@media screen and (max-width: 992px) {
  .xili-newsl-wapper {
    flex-direction: column-reverse;
  }

  .xili-newsl-left,
  .xili-newsl-right {
    width: 100%;
  }

  .down-icon {
    cursor: pointer;
  }

  .down-icon::after {
    display: block;
  }

  .down-icon.is-open::after {
    transform: translateY(-50%) rotate(180deg);
  }

}