/* CSS banner  */
.__banner__news__header {
  background: url(../img/banner/img_banner_news.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CSS middle content */
.content-news {
  padding: 80px 112px;
  background-color: #f2f4f7;
  display: flex;
  gap: 38px;
  flex-direction: column;
}

.title-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.navigation ul {
  display: flex;
  list-style-type: none;
  gap: 70px;
  margin: 0;
  padding-top: 5px;
}
.navigation li a {
  font-size: var(--text-xsm);
}

.content-detail-news {
  height: auto;
  display: flex;
  margin-top: 38px;
  gap: var(--gap-primary);
  flex-direction: column;
}

.content-large {
  display: flex;
  padding: 24px;
  height: auto;
  min-height: 368px;
  border-radius: var(--radius-lg);
  background-color: white;
  gap: var(--gap-primary);
}
.content-large .btn-container {
  margin-left: 7px;
}

.content-small {
  display: flex;
  gap: var(--gap-primary);
  height: auto;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.item-small-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  background-color: white;
  width: calc(33.333% - 22px);
  gap: var(--gap-secondary);
}

.item-small-content .logo-news {
  transform: translateX(-25%);
  height: 30px;
  margin-bottom: 30px;
}
.item-small-content .img_LG {
  object-fit: cover;
}
.item-small-content .img_LG img {
  width: 100%;
  height: 193.5px;
  opacity: 1;
  border-radius: var(--radius-lg);
  border-width: 2px;
  object-fit: cover;
}
.item-small-content .detail-information {
  width: 100%;
  margin-left: -2px;
}
.item-small-content .detail-information p:nth-child(1) {
  display: -webkit-box;
  height: 71px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-small-content .detail-information p:nth-child(2) {
  display: -webkit-box;
  height: 47px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}
.item-small-content .btn-read-continue {
  margin-left: -5px;
}

.img_LG {
  object-fit: cover;
}

.img_LG img {
  border: 2px #ffffff;
  box-shadow: 10px 24px 34px 0px #b9e9fa4d;
  width: 570px;
  height: 320px;
  border-radius: var(--radius-lg);
  opacity: 1;
}

.information {
  display: flex;
  flex-direction: column;
  gap: 23px;
  justify-content: space-between;
}

.logo-news {
  object-fit: cover;
  width: 95px;
  height: 41px;
  opacity: 1;
  transform: translateY(-50%);
}

.logo-news img {
  width: 130px;
  height: 89.87px;
}
.detail-information {
  margin-left: 15px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  /* width: 566px; */
}
.detail-information p:nth-child(1) {
  height: auto;
  min-height: 66px;
  font-size: 25px;
  font-weight: 600;
}
.detail-information p:nth-child(2) {
  height: auto;
  min-height: 54px;
  font-weight: 400;
  font-size: 16px;
  line-height: var(--leading-sm);
}

.btn-container {
  height: 24px;
  display: flex;
  align-items: center;
}

.btn-read-continue {
  text-decoration: none;
  margin-left: 15px;
  margin-right: 30px;
  border: none;
  font-weight: 600;
  line-height: var(--leading-sm);
  font-size: var(--text-sm);
  background-color: white;
  color: #0086c9;
}

/* CSS pagination */
.index-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 40px;
  align-items: center;
  margin-top: 32px;
}
.index-pagination div {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-pagination div:nth-child(3) {
  background-color: #0086c9;
  color: white;
}

.arrow-return {
  width: 40px;
  background-color: white;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #0086c9;
  display: flex;
  justify-content: center;
}
.arrow-return img {
  filter: invert(41%) sepia(94%) saturate(1867%) hue-rotate(164deg)
    brightness(95%) contrast(101%);
  transform: scaleX(-1);
}

.arrow-continue {
  width: 40px;
  background-color: white;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #0086c9;
  display: flex;
  justify-content: center;
}
.arrow-continue img {
  filter: invert(41%) sepia(94%) saturate(1867%) hue-rotate(164deg)
    brightness(95%) contrast(101%);
}

/* CSS contact */
.__contact_news {
  min-height: 606px;
  padding-top: 80px;
  gap: 40px;
  margin-bottom: 5rem;
}
.__contact_news__right,
.__contact_news__left {
  flex: 1;
  border-radius: var(--radius-lg);
}
.__contact_news__left {
  background-image: url("../img/contact/contact_tech.jpg");
  background-size: cover;
  background-position: left;
  min-width: 626px;
}
.__contact_news__right .__contact_form {
  margin-top: 0;
}

@media (max-width: 768px) {
  /* Content News Container */
  .content-news {
    padding: 40px 20px;
    gap: 24px;
  }

  /* Title and Navigation */
  .title-navigation {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 20px;
  }

  .title-navigation span:nth-child(1) {
    font-size: var(--text-slg);
  }

  .navigation {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .navigation ul {
    display: flex;
    flex-direction: row;
    gap: var(--gap-secondary);
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    width: max-content; 
    white-space: nowrap;
  }

  .navigation li {
    width: auto;
    flex-shrink: 0;
  }

  .navigation li a {
    font-size: 16px;
    display: block;
    padding: 8px 0;
  }

  /* Content Detail News */
  .content-detail-news {
    gap: 20px;
    margin-top: 24px;
  }

  /* Content Large */
  .content-large {
    flex-direction: column;
    padding: 16px;
    gap: 20px;
    min-height: auto;
  }

  .content-large .img_LG img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }

  .content-large .information {
    gap: var(--gap-secondary);
  }

  .content-large .logo-news {
    transform: translateY(0);
    transform: translateX(-25%);
    margin-bottom: 12px;
  }

  .content-large .detail-information {
    width: 100%;
    margin-left: 0;
  }

  .content-large .btn-read-continue {
    margin-left: 0;
  }

  /* Content Small */
  .content-small {
    gap: 20px;
    flex-direction: column;
  }

  .item-small-content {
    width: 100%;
    padding: 16px;
    gap: 12px;
  }

  .item-small-content .img_LG img {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .item-small-content .logo-news {
    transform: translateX(0);
    margin-bottom: 12px;
    transform: translateX(-25%);
  }

  .item-small-content .detail-information {
    width: 100%;
    margin-left: 0;
  }

  .item-small-content .detail-information p:nth-child(1) {
    height: auto;
    min-height: auto;
    font-size: var(--text-sm);
  }

  .item-small-content .detail-information p:nth-child(2) {
    height: auto;
    min-height: auto;
    font-size: var(--text-xs);
    line-height: var(--leading-xsm);
  }

  .item-small-content .btn-read-continue {
    margin-left: 0;
  }

  /* Detail Information */
  .detail-information p:nth-child(1) {
    font-size: var(--text-xsm);
    min-height: auto;
  }

  .detail-information p:nth-child(2) {
    font-size: var(--text-xs);
    line-height: var(--leading-xsm);
    min-height: auto;
  }

  /* Pagination */
  .index-pagination {
    margin-top: 24px;
    gap: 8px;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-news {
    padding: 60px 40px;
  }
  .content-detail-news {
    gap: 20px;
    margin-top: 24px;
  }

  /* Content Large */
  .content-large {
    flex-direction: column;
    padding: 16px;
    gap: 20px;
    min-height: auto;
  }

  .content-large .img_LG img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }

  .content-large .information {
    gap: var(--gap-secondary);
  }

  .content-large .logo-news {
    transform: translateY(0);
    transform: translateX(-25%);
    margin-bottom: 12px;
  }

  .content-large .detail-information {
    width: 100%;
    margin-left: 0;
  }

  .content-large .btn-read-continue {
    margin-left: 0;
  }

  .item-small-content {
    width: calc(50% - 16px);
  }

  .navigation ul {
    gap: 40px;
  }
}
