body {
  padding: 0 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body > div {
  flex: 1;
} 

/* Container của chi tiết */
.detail.preview {
  position: relative;
  max-height: 28rem;
  /* chỉnh chiều cao hiển thị (tầm 50% bài) */
  overflow: hidden;
}

.detail.preview::after {
  content: "";
  position: absolute;
  bottom: 0rem;
  /* chừa chỗ cho link "read more" */
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  /* để click vào link bên dưới không bị che */
}

/* link read more */
.read-more {
  display: block;
  text-align: center;
  margin-top: 1rem;
  /* đẩy gần lên phần che mờ */
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-style: italic;
  position: relative;
  z-index: 1;
  /* đảm bảo nổi lên trên gradient */
}

.read-more:hover {
  color: blue;
}

/* .wrapper_news .main_content {
    margin-top: 10%;
} */

header.header-2 {
  padding: 24px 12px;
}

@media screen and (min-width: 1200px) {
  header.header-2 {
    padding: 20px 15px;
  }
}
.logo img {
  display: none;
}

@media screen and (min-width: 1200px) {
  #bar {
    display: none;
  }

  .logo img {
    display: block;
  }
}

@media screen and (max-width: 1199px) {
  .pages>a {
    display: none;
  }

  .nav-links {
    display: none;
    gap: 20px;
    flex-direction: column;
    width: 65%;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgb(255 255 255);
    padding: 36px 22px 0;
  }

  .nav-links.show+.shadown {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(43, 43, 43, 0.502);
    z-index: -1;
  }
}

@media screen and (min-width: 1200px) {
  .nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    transition: all 0.3s ease;
    align-items: center;
    padding: 0;
  }
}

.nav-links li {
  position: relative;
  display: block;
  padding: 10px;
  width: 100%;
}

@media screen and (min-width: 1200px) {
  .nav-links li {
    width: unset;
  }
}

@media screen and (max-width: 1199px) {
  .nav-links li:not(:last-child) {
    margin-bottom: 8px;
  }
}

.header-2 .nav-links a {
  color: #5C636B;
  text-decoration: none;
  font-weight: 300;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

@media screen and (min-width: 1200px) {
  .header-2 .nav-links a {
    color: white;
    font-weight: 300;
    font-size: 1.06vw;
    padding: 8px 15px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    /* transform: translateY(-2px); */
  }
}

.nav-links a.active {
  position: relative;
  font-weight: 700;
  color: #00071A;
  display: block;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  height: 2px;
  background-color: rgba(14, 168, 218, 1);
}

@media screen and (max-width: 1199px) {
  .nav-links .nav-close {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media screen and (min-width: 1200px) {
  .nav-links a.active {
    display: inline-block;
    color: #FFFFFF;
  }

  .nav-links a.active::after {
    content: "";
    position: absolute;
    width: 80%;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: rgba(14, 168, 218, 1);
  }

  .nav-links .nav-close {
    display: none;
  }
}

.nav-close a {
  flex: 1;
}

@media screen and (max-width: 1199px) {
  .pages {
    flex-direction: row-reverse;
  }
}