.page-node-type-brics-initiatives .page-title,
.page-node-type-listing-page-brics-initiatives .page-title {
  background: var(--scroll-dot-color);
  width: fit-content;
  padding: 10px;
  color: var(--background-color);
}

.document-layout-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.document-side-panel {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.doc-side-block {
  background-color: #ffffff;
}

.doc-side-block-scroll-area {
  max-height: 200px;
  overflow-y: auto;
}

.doc-side-title {
  padding: 0.35rem 0;
  color: #a0a8b6;
  font-family: Montserrat;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.doc-ref-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  color: #2f67d3;
  font-size: 0.72rem;
  line-height: 1.35;
  font-family: Montserrat;
  font-weight: 500;
  white-space: nowrap;
}

.doc-ref-item span:first-child::before {
  content: "[";
}

.doc-ref-item span:first-child::after {
  content: "]";
}

.doc-ref-item span:first-child {
  color: #6f6f6f;
}

.doc-ref-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-ref-item:last-child {
  border-bottom: 0;
}

.doc-ref-item:hover {
  background-color: #f6f9ff;
  color: #0c1220;
}

.document-card {
  grid-column: span 9;
  background-color: #ffffff;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.document-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: sticky;
  top: 0.75rem;
  z-index: 10;
}

.document-title {
  text-transform: uppercase;
  color: var(--primary-text-color);
  font-family: Montserrat;
  font-size: 2rem;
  font-weight: 700;
  font-style: normal;
  line-height: 45px;
  letter-spacing: 0px;
  width: 70%;
  padding-left: 0.95rem;
}

.document-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  text-decoration: none;
  color: var(--scroll-dot-color);
  font-size: 0.7rem;
  white-space: nowrap;
  font-family: Montserrat;
  font-weight: 600;
  font-size: 14px;
  background: var(--background-color);
}

.bi-download,
.bi-share {
  -webkit-text-stroke: 1px;
}

.document-action-btn:hover {
  color: var(--primary-text-color);
  background: #f4f4f2;
}

.document-scroll-area {
  padding: 0.95rem 1rem;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #dfe5ee;
}

.document-scroll-area::-webkit-scrollbar,
.initiative-cards::-webkit-scrollbar {
  display: none;
}

.document-scroll-area p {
  font-family: Montserrat;
  font-weight: 400;
  font-size: 15px;
  line-height: 26.25px;
  letter-spacing: 0px;
  color: var(--secondary-text-color);
  text-align: justify;
}

.document-scroll-area p:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .document-layout-grid {
    grid-template-rows: auto 1fr;
  }
 
  .document-side-panel {
    grid-row: 2;
  }
 
  .document-card {
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: subgrid;
  }
}

@media (max-width: 991.98px) {
  .document-layout-grid {
    grid-template-columns: 1fr;
  }

  .document-card {
    grid-column: 1 / -1;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    order: 1;
    min-height: 360px;
  }
  
  .document-side-panel {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 2;
  }
}

@media (max-width: 575.98px) {
   .document-actions {
    top: 0.5rem;
    align-self: stretch;
    width: 100%;
  }
  .document-title {
    width: 100%;
  }
  .document-action-btn {
    flex: 1;
    justify-content: center;
  }
}
