*,
*::before,
*::after {
  box-sizing: border-box;
}

.doc-detail-page {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #0d0d0d;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.doc-detail-page :where(a) {
  color: inherit;
  text-decoration: none;
}
.doc-detail-page img {
  display: block;
  max-width: 100%;
}
.doc-detail-page h2,
.doc-detail-page h3 {
  margin: 0;
}

.page-hero__banner {
  position: relative;
  height: 256px;
  overflow: hidden;
  background: linear-gradient(96deg, #009f48 0%, #017435 60%);
}
.page-hero__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 74%;
  background: url("assets/banner-photo.png") center/cover no-repeat;
  clip-path: polygon(80px 0, 100% 0, 100% 100%, 0 100%);
}
.page-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(1, 116, 53, 0.92) 0%, rgba(1, 116, 53, 0.1) 42%, rgba(0, 159, 72, 0.04) 100%);
}
.page-hero__stripes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 26%;
  width: 46%;
  pointer-events: none;
}
.page-hero__stripe {
  position: absolute;
  top: -28px;
  bottom: -28px;
  width: 86px;
  background: #017435;
  transform: skewX(-21deg);
  transform-origin: top center;
}
.page-hero__stripe:nth-child(1) {
  left: 0%;
  opacity: 1;
  width: 150px;
}
.page-hero__stripe:nth-child(2) {
  left: 34%;
  opacity: 0.85;
  width: 70px;
}
.page-hero__stripe:nth-child(3) {
  left: 52%;
  opacity: 0.6;
  width: 44px;
}
.page-hero__inner {
  position: absolute;
  inset: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}
.page-hero__trees {
  position: absolute;
  left: 80px;
  top: 20px;
  width: 279px;
  height: 216px;
  opacity: 0.92;
}
.page-hero__title {
  position: absolute;
  left: 82px;
  top: 104px;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.detail-body {
  background: #fff;
}
.detail-body__wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.detail-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: #0d0d0d;
  text-wrap: pretty;
}

.detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: -16px;
}
.detail-meta__left {
  display: flex;
  align-items: center;
  gap: 13px;
}
.detail-meta__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #757575;
}
.detail-meta__date svg {
  flex: 0 0 auto;
}
.detail-meta__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7d7f82;
}
.detail-meta__cat {
  font-size: 15px;
  color: #017435;
}
.detail-meta__cat:hover {
  text-decoration: underline;
}

.share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.share__label {
  font-size: 16px;
  color: #5f5f62;
  margin-right: 2px;
}
.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #5f5f62;
  box-shadow: inset 0 0 0 1px #dfe1dc;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.share__btn:hover {
  background: #017435;
  color: #fff;
  box-shadow: inset 0 0 0 1px #017435;
}
.share__btn--zalo span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.spec {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.spec__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  padding: 5px 0;
}
.spec__row dt,
.spec__row dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #0d0d0d;
}
.spec__row dt {
  white-space: nowrap;
}
.spec__row dd {
  text-wrap: pretty;
  font-weight: 400;
}

.filebox {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.filebox__label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2e2e2e;
}
.filebox__card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.filebox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9e9e9;
}
.filebox__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #017435;
  line-height: 1.4;
  min-width: 0;
}
.filebox__name svg {
  flex: 0 0 auto;
  color: #c7202c;
}
.filebox__name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.filebox__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: #017435;
}
.filebox__download:hover {
  text-decoration: underline;
}
.filebox__preview {
  position: relative;
  height: 560px;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #f3f5f1 0 12px, #eef1ec 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.filebox__placeholder {
  font-family: "SFMono-Regular", ui-monospace, "Menlo", monospace;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #8a948a;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 100px;
}

.detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #5f5f62;
}
.detail-back svg {
  color: #6d6e69;
  transition: transform 0.15s ease;
}
.detail-back:hover svg {
  transform: translateX(-3px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-heading__icon {
  flex: 0 0 auto;
  color: #017435;
  line-height: 0;
}
.section-heading__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #0d0d0d;
  white-space: nowrap;
}
.section-heading__rule {
  flex: 1 1 auto;
  height: 8px;
}

.related {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc-table {
  width: 100%;
}
.doc-table__head, .doc-table__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 120px 131px;
  -moz-column-gap: 30px;
       column-gap: 30px;
  padding: 0 20px;
  align-items: center;
}
.doc-table__head {
  height: 42px;
  background: #e8f3e9;
}
.doc-table__head .doc-table__cell {
  font-size: 15px;
  font-weight: 700;
  color: #0d0d0d;
}
.doc-table__row {
  min-height: 52px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: #fff;
  border: 1px solid #e8f3e9;
  border-top: none;
  transition: background 0.15s ease;
}
.doc-table__row:hover {
  background: rgba(232, 243, 233, 0.45);
}
.doc-table__cell {
  font-size: 14px;
}
.doc-table__ref {
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-table__ref .doc-table__pdf {
  flex: 0 0 20px;
  color: #c7202c;
  line-height: 0;
}
.doc-table__name {
  color: #0d0d0d;
  text-wrap: pretty;
}
.doc-table__date {
  color: #0d0d0d;
}
.doc-table__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.doc-table__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #017435;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}
.doc-table__action svg {
  flex: 0 0 auto;
}
.doc-table__action:hover {
  text-decoration: underline;
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #0d0d0d;
}

.featured-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fnews {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}
.fnews__thumb {
  display: block;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8f3e9;
}
.fnews__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s ease;
}
.fnews__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #0d0d0d;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fnews:hover .fnews__thumb img {
  transform: scale(1.05);
}
.fnews:hover .fnews__title {
  color: #017435;
}

.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  padding: 28px 16px 0;
  text-align: center;
}
.promo__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin-top: 28px;
  border-radius: 50%;
  background: #fff;
  color: #017435;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.promo__label {
  width: 100%;
  padding: 18px 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}
.promo--vnff {
  background: linear-gradient(160deg, #eef6ef 0%, #d6ead9 100%);
}
.promo--vnff .promo__label {
  background: #fff;
  color: #017435;
}
.promo--gov {
  background: linear-gradient(160deg, #44ca81 0%, #017435 100%);
}
.promo--gov .promo__logo {
  color: #017435;
}
.promo--gov .promo__label {
  background: #017435;
  color: #fff;
}
.promo:hover .promo__logo {
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}

.side-agencies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.side-agencies__link {
  display: block;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.side-agencies__link img {
  width: 100%;
  height: auto;
  display: block;
}
.side-agencies__link:hover {
  opacity: 0.88;
}

@media (max-width: 1100px) {
  .detail-body__wrap {
    grid-template-columns: 1fr;
  }
  .detail-side {
    max-width: 520px;
  }
  .doc-table__head {
    display: none;
  }
  .doc-table__row {
    grid-template-columns: 1fr;
    row-gap: 8px;
    border-top: 1px solid #e8f3e9;
  }
  .doc-table__actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .detail-body__wrap {
    padding: 32px 20px;
  }
  .detail-title {
    font-size: 24px;
  }
  .spec__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .filebox__preview {
    height: 380px;
  }
  .page-hero__title {
    font-size: 24px;
    left: 60px;
  }
}
