/* Page: Chi tiết dự án - Tab Tiến độ */

.project-progress-page {
  --pp-blue: #075fdb;
  --pp-blue-dark: #071d4e;
  --pp-cyan: #11b4e8;
  --pp-orange: #f28a12;
  --pp-green: #0ba85d;
  --pp-purple: #7b16be;
  --pp-gray: #aab4c3;
  --pp-muted: #69758a;
  --pp-border: #dce5f1;
  --pp-soft: #f7faff;
}

.progress-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #edf6fb;
}

.progress-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.99) 34%, rgba(255,255,255,.72) 51%, rgba(255,255,255,.04) 79%);
}

.progress-hero__media {
  position: absolute;
  inset: 0 0 0 34%;
}

.progress-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.progress-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 390px;
  display: flex;
  align-items: center;
}

.progress-hero__content {
  width: min(100%, 690px);
}

.progress-hero__content .project-breadcrumb {
  margin-bottom: 31px;
}

.progress-hero h1 {
  margin-top: 15px;
  color: var(--pp-blue-dark);
  font-size: var(--font-page-title);
  line-height: 1.12;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.progress-hero__content > p {
  margin-top: 15px;
  color: #263752;
  font-size: var(--font-body-lg);
  font-weight: 600;
}

.progress-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 37px;
}

.progress-hero__facts > div {
  min-width: 155px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-hero__facts dt {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--pp-blue-dark);
}

.progress-hero__facts dt svg {
  width: 23px;
  height: 23px;
}

.progress-hero__facts dd {
  margin: 0;
}

.progress-hero__facts small,
.progress-hero__facts strong {
  display: block;
}

.progress-hero__facts small {
  color: #748096;
  font-size: var(--font-caption);
}

.progress-hero__facts strong {
  margin-top: 4px;
  color: #1a2a48;
  font-size: var(--font-small);
}

.progress-tabs {
  position: relative;
  z-index: 5;
  margin-top: -28px;
}

.progress-tabs__rail {
  display: flex;
  overflow-x: auto;
  padding: 0 9px;
  border: 1px solid var(--pp-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 58, 113, .1);
  scrollbar-width: none;
}

.progress-tabs__rail::-webkit-scrollbar {
  display: none;
}

.progress-tabs a,
.progress-tabs button {
  position: relative;
  min-width: max-content;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #283853;
  border: 0;
  background: transparent;
  font-size: var(--font-caption);
  font-weight: 700;
}

.progress-tabs svg {
  width: 17px;
  height: 17px;
}

.progress-tabs a.is-active {
  color: var(--pp-blue);
}

.progress-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--pp-blue);
}

.progress-overall,
.progress-categories,
.progress-journal,
.progress-documents {
  padding: 34px 0 0;
}

.progress-section-title h2 {
  color: var(--pp-blue-dark);
  font-size: var(--font-card-title-lg);
  text-transform: uppercase;
}

.progress-section-title > span {
  width: 43px;
  height: 3px;
  display: block;
  margin-top: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pp-orange) 0 70%, #ffbe5f 70% 100%);
}

.progress-overall__grid {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 18px;
  margin-top: 17px;
}

.progress-overall__score,
.progress-timeline {
  border: 1px solid var(--pp-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 11px 28px rgba(18, 58, 113, .06);
}

.progress-overall__score {
  min-height: 164px;
  padding: 28px 23px;
}

.progress-overall__score strong {
  display: block;
  color: var(--pp-blue);
  font-size: var(--font-page-title);
  line-height: 1;
}

.progress-overall__score h3 {
  margin-top: 18px;
  color: #253552;
  font-size: var(--font-small);
  line-height: 1.5;
}

.progress-overall__score p {
  margin-top: 17px;
  color: var(--pp-muted);
  font-size: var(--font-caption);
}

.progress-timeline {
  min-height: 164px;
  padding: 30px 24px 18px;
}

.progress-timeline > ol {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.progress-timeline > ol li {
  text-align: center;
}

.progress-timeline > ol li > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px currentColor;
  background: #fff;
  color: var(--pp-gray);
  font-size: var(--font-small);
  font-weight: 800;
}

.progress-timeline > ol li.is-complete > span {
  color: var(--pp-green);
  background: var(--pp-green);
  box-shadow: 0 0 0 2px var(--pp-green);
  color: #fff;
}

.progress-timeline > ol li.is-current > span {
  color: var(--pp-blue);
  box-shadow: 0 0 0 3px var(--pp-blue);
}

.progress-timeline > ol li.is-upcoming > span {
  color: var(--pp-orange);
  box-shadow: 0 0 0 2px var(--pp-orange);
}

.progress-timeline > ol li strong {
  display: block;
  margin-top: 14px;
  color: #34435e;
  font-size: var(--font-caption);
}

.progress-timeline > ol li p {
  margin-top: 6px;
  color: #526078;
  font-size: var(--font-caption);
}

.progress-timeline__line {
  position: absolute;
  display: none;
}

.progress-timeline {
  position: relative;
}

.progress-timeline::before {
  content: "";
  position: absolute;
  top: 51px;
  left: 10%;
  right: 10%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pp-green) 0 32%, var(--pp-blue) 32% 58%, #c9d1dc 58% 100%);
}

.progress-timeline__legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 31px;
  margin-top: 19px;
  padding-top: 13px;
  border-top: 1px solid #e6ebf2;
}

.progress-timeline__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #68758a;
  font-size: var(--font-caption);
}

.progress-timeline__legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.progress-timeline__legend .is-complete { background: var(--pp-green); }
.progress-timeline__legend .is-current { background: var(--pp-blue); }
.progress-timeline__legend .is-upcoming { background: var(--pp-orange); }
.progress-timeline__legend .is-future { background: var(--pp-gray); }

.progress-section-header,
.progress-journal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.progress-section-header > button {
  margin-top: 4px;
  color: var(--pp-blue);
  border: 0;
  background: transparent;
  font-size: var(--font-caption);
  font-weight: 700;
}

.progress-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}

.progress-category-card {
  min-width: 0;
  padding: 12px 11px 13px;
  border: 1px solid var(--pp-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(18, 58, 113, .06);
}

.progress-category-card > header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
}

.progress-category-card > header span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 50%;
  background: var(--pp-blue);
}

.progress-category-card > header svg {
  width: 16px;
  height: 16px;
}

.progress-category-card h3 {
  color: #243550;
  font-size: var(--font-caption);
}

.progress-category-card > img {
  width: 100%;
  aspect-ratio: 1.36 / 1;
  margin-top: 10px;
  border-radius: 6px;
  object-fit: cover;
}

.progress-category-card__status {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 11px;
}

.progress-category-card__status strong {
  color: var(--pp-blue-dark);
  font-size: var(--font-card-title);
}

.progress-category-card__status span {
  color: #53617a;
  font-size: var(--font-caption);
}

.progress-category-card__bar {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef4;
}

.progress-category-card__bar i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.progress-category-card > p {
  min-height: 52px;
  margin-top: 11px;
  color: var(--pp-muted);
  font-size: var(--font-caption);
  line-height: 1.55;
}

.progress-category-card > small {
  color: #35445f;
  font-size: var(--font-caption);
  font-weight: 700;
}

.progress-journal__header select {
  height: 35px;
  padding: 0 31px 0 13px;
  color: #42516b;
  border: 1px solid var(--pp-border);
  border-radius: 7px;
  background: #fff;
  font-size: var(--font-caption);
}

.progress-journal__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.progress-journal__filters button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  color: #43516a;
  border: 1px solid var(--pp-border);
  border-radius: 7px;
  background: #fff;
  font-size: var(--font-caption);
  font-weight: 700;
}

.progress-journal__filters svg {
  width: 14px;
  height: 14px;
}

.progress-journal__filters button.is-active {
  color: #fff;
  border-color: var(--pp-blue);
  background: var(--pp-blue);
}

.progress-journal__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}

.progress-journal__grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pp-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(18, 58, 113, .05);
}

.progress-journal__grid article[hidden] {
  display: none;
}

.progress-journal__grid figure {
  position: relative;
  margin: 0;
}

.progress-journal__grid figure img {
  width: 100%;
  aspect-ratio: 1.37 / 1;
  object-fit: cover;
}

.progress-journal__grid figure > span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  color: #fff;
  border-radius: 999px;
  background: var(--pp-green);
  font-size: var(--font-caption);
  font-weight: 700;
}

.progress-journal__grid figure > button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 34, 79, .82);
  transform: translate(-50%, -50%);
}

.progress-journal__grid figure > button svg {
  width: 16px;
  height: 16px;
}

.progress-journal__grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px 0;
}

.progress-journal__grid time {
  color: #6b778c;
  font-size: var(--font-caption);
}

.progress-journal__grid article > div svg {
  width: 13px;
  height: 13px;
  color: var(--pp-blue);
}

.progress-journal__grid h3 {
  padding: 8px 11px 0;
  color: #283853;
  font-size: var(--font-caption);
  line-height: 1.45;
}

.progress-journal__grid article > p {
  min-height: 42px;
  padding: 6px 11px 12px;
  color: var(--pp-muted);
  font-size: var(--font-caption);
  line-height: 1.5;
}

.progress-load-more {
  min-width: 180px;
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 15px auto 0;
  color: var(--pp-blue);
  border: 1px solid var(--pp-blue);
  border-radius: 7px;
  background: #fff;
  font-size: var(--font-caption);
  font-weight: 700;
}

.progress-load-more svg {
  width: 15px;
  height: 15px;
}

.progress-document-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.progress-document-grid article {
  min-height: 69px;
  display: grid;
  grid-template-columns: 41px 1fr 28px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--pp-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(18, 58, 113, .04);
}

.progress-document-grid article > span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #ef3636;
  border: 1px solid #f1d2d2;
  border-radius: 7px;
  background: #fff8f8;
  font-size: var(--font-caption);
  font-weight: 800;
}

.progress-document-grid h3 {
  color: #263650;
  font-size: var(--font-caption);
  line-height: 1.45;
}

.progress-document-grid p {
  margin-top: 4px;
  color: #758096;
  font-size: var(--font-caption);
}

.progress-document-grid button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--pp-blue);
  border: 0;
  background: transparent;
}

.progress-document-grid button svg {
  width: 15px;
  height: 15px;
}

.progress-subscribe {
  padding: 30px 0 25px;
}

.progress-subscribe__inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 28px;
  overflow: hidden;
  color: #fff;
  border-radius: 13px;
  background:
    linear-gradient(90deg, #0557d5 0%, #087be8 34%, rgba(4,91,197,.77) 54%, #e66e0b 100%);
  box-shadow: 0 13px 30px rgba(9, 89, 204, .18);
}

.progress-subscribe__inner h2 {
  font-size: var(--font-card-title);
}

.progress-subscribe__inner p {
  margin-top: 6px;
  color: rgba(255,255,255,.85);
  font-size: var(--font-caption);
}

.progress-subscribe form {
  min-width: 390px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.progress-subscribe input {
  height: 41px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  outline: 0;
  font-size: var(--font-caption);
}

.progress-subscribe button {
  min-width: 97px;
  color: #fff;
  border: 0;
  border-radius: 7px;
  background: #0866db;
  font-size: var(--font-caption);
  font-weight: 700;
}

.progress-video-dialog {
  width: min(92vw, 560px);
  padding: 24px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(5, 25, 65, .28);
}

.progress-video-dialog::backdrop {
  background: rgba(4, 20, 50, .6);
  backdrop-filter: blur(3px);
}

.progress-video-dialog > button {
  position: absolute;
  top: 11px;
  right: 12px;
  width: 31px;
  height: 31px;
  border: 1px solid var(--pp-border);
  border-radius: 50%;
  background: #fff;
  font-size: var(--font-card-title);
}

.progress-video-dialog h2 {
  color: var(--pp-blue-dark);
  font-size: var(--font-subsection-title);
}

.progress-video-dialog > div {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 15px;
  margin-top: 18px;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(135deg, #0a2b66, #0874df);
  text-align: center;
}

.progress-video-dialog > div svg {
  width: 48px;
  height: 48px;
}

.progress-video-dialog > div p {
  max-width: 340px;
  font-size: var(--font-small);
  line-height: 1.6;
}

@media (max-width: 1199px) {
  .progress-category-grid,
  .progress-journal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .progress-hero__media {
    inset: 0 0 0 24%;
  }

  .progress-overall__grid {
    grid-template-columns: 1fr;
  }

  .progress-timeline > ol li p {
    min-height: 28px;
  }

  .progress-subscribe__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .progress-subscribe form {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .progress-hero {
    min-height: auto;
  }

  .progress-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,.86), #fff 82%);
  }

  .progress-hero__media {
    inset: 0;
    opacity: .38;
  }

  .progress-hero__inner {
    min-height: 430px;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 44px;
  }

  .progress-hero h1 {
    font-size: var(--font-page-title);
  }

  .progress-hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }

  .progress-tabs {
    margin-top: -20px;
  }

  .progress-overall,
  .progress-categories,
  .progress-journal,
  .progress-documents {
    padding-top: 27px;
  }

  .progress-timeline {
    overflow-x: auto;
  }

  .progress-timeline > ol {
    width: 650px;
  }

  .progress-timeline::before {
    left: 65px;
    right: auto;
    width: 520px;
  }

  .progress-timeline__legend {
    width: 650px;
    justify-content: flex-start;
  }

  .progress-category-grid,
  .progress-journal__grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .progress-category-card,
  .progress-journal__grid article {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  .progress-document-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .progress-hero h1 {
    font-size: var(--font-section-title);
  }

  .progress-hero__facts {
    grid-template-columns: 1fr;
  }

  .progress-overall__score strong {
    font-size: var(--font-page-title);
  }

  .progress-section-header,
  .progress-journal__header {
    flex-direction: column;
  }

  .progress-subscribe form {
    grid-template-columns: 1fr;
  }

  .progress-subscribe button {
    min-height: 41px;
  }
}
