.mainSection {
  padding: 0 0 100px;
  display: flex;
  justify-content: center;
}

.documentationSection {
  max-width: 1200px;
  width: 85%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.documentationTop {
  padding: 40px 0 20px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #fafafa;
}

.breadCrumb {
  color: #595959;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.breadCrumb a {
  font-weight: 500;
}

.breadCrumb i {
  font-size: 10px;
}

.documentationHeader {
  line-height: 1.4;
  letter-spacing: 0.7px;
  font-size: 32px;
  font-weight: 800;
}

.documentationBottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.documentationNavs {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #f3f3f3;
  overflow: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.documentationNavs::-webkit-scrollbar {
  display: none;
}

.documentationNav {
  padding: 0 0 10px;
  font-weight: 500;
  color: #4b4b4b;
  cursor: pointer;
  white-space: nowrap;
}

.documentationNav.active {
  color: #191919;
  font-weight: 600;
  border-bottom: 2px solid #f35163;
  transition: 0.4s all ease-in-out;
}

.documentationNav:not(.active):hover {
  color: #333;
  border-bottom: 2px solid #e3e3e3;
}

/* documentations */
.documentation {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: start;
  gap: 30px 70px;
}

.documentationContents {
  width: 100%;
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* how to use  */

.docContents {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.documentationContent {
  position: relative;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #333;
}

.documentationContent::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  height: 100%;
  width: 1px;
  background: #fafafa;
  z-index: 1;
}

.documentationContent:last-child::before {
  height: 40%;
}

.docMainHeader {
  font-size: 24px;
  padding-bottom: 5px;
  line-height: 1.4;
  letter-spacing: 0.9px;
  color: #191919;
}

.docContents:last-child .docMainHeader {
  margin-top: 20px;
}

.docHeader {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.7px;
}

.docDes {
  line-height: 20px;
  color: #444;
}

.docDes ul {
  padding-left: 20px;
}

.docDes strong {
  font-size: 15px;
  line-height: 2;
}

.docNumber {
  position: absolute;
  left: 0;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background-color: #fafafa;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.tableOfContent {
  position: sticky;
  top: 20px;
  max-width: 300px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tableHeader {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.headerTable {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contentCaret {
  display: none;
}

.tableContents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contents {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contentHeader {
  font-weight: 500;
  transition: all 0.2s;
}

.contents.active .contentHeader {
  color: #f35163;
  transition: all 0.2s;
}

.contentTopics {
  display: flex;
  flex-direction: column;
  padding: 5px;
  font-size: 13px;
}

.topic {
  padding: 10px;
  border-left: 1px solid #f3f3f3;
  color: #666565;
  transition: all 0.2s;
}

.topic:hover {
  border-left: 2px solid #f3f3f3;
}

.topic.active {
  font-weight: 500;
  border-left: 2px solid #f35163;
  color: #333;
  transition: all 0.2s;
}

/* flags documentation */

.flagDocumentContainers {
  flex: 1 1 520px;
  width: 100%;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.flagDocumentContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flagContainerHeader {
  padding-bottom: 15px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.9px;
  color: #191919;
}

.flagDocumentationContent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #333;
}

.flagDocumentationContent table {
  margin-top: 20px;
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 5px 20px 0 rgba(185, 185, 185, 0.145);
  border-radius: 10px;
}

.flagDocumentationContent table tr th,
.flagDocumentationContent table tr td {
  padding: 15px;
  text-align: left;
}

.flagDocumentationContent table tr td {
  color: #424242;
}

.flagDocumentationContent table tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

/* flag catalogues  */

.flagCatalogues {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.flagCatalogue {
  padding: 20px;
  /* background: #F9FAFB; */
  box-shadow: 5px 10px 20px 5px rgba(185, 185, 185, 0.145);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flagHeaders {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flagTitle {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.flagType {
  padding: 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.flagType.community {
  color: #009ef7;
  background-color: #ecf8ff;
}

.flagType.data {
  color: #7239ea;
  background-color: #f8f5ff;
}

.flagBottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detHeader {
  color: #333;
  font-weight: 600;
}

.flagDescription {
  color: #7e8299;
  line-height: 1.6;
}

/* doc action */

.docAction {
  padding: 20px 0;
}

.docAction a {
  padding: 10px 15px;
  background: #7239ea;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

/* api */

.api-endpoint {
  width: 100%;
  max-width: 800px;
  margin: 0 0 20px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.api-endpoint h3 {
  padding: 0 0 5px;
}

.request-info {
  font-family: Arial, sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: right;
  gap: 8px;
  margin-bottom: 16px;
}

.method {
  padding: 3px 6px;
  color: white;
  border-radius: 3px;
  font-weight: bold;
  font-size: 13px;
}

.method.post {
  background: #49cc90;
}

.url {
  min-width: 150px;
  flex: 1;
  font-family: monospace;
  overflow-x: auto;
}

.copy-url {
  padding: 3px 6px;
  background: #ffffff;
  border: 1px solid #d1d5da;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.copy-url:hover {
  background: #f3f4f6;
}

.request-body {
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  resize: horizontal;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.request-body h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

pre {
  margin: 0;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
}

pre code {
  display: block;
  text-align: left;
  white-space: pre;
}

.copy-btn {
  max-width: fit-content;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #d1d5da;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin: 8px 0;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #f3f4f6;
}

.request-body .note {
  font-family: "Inter";
  color: #f35163;
  font-size: 13px;
}

/* publication policy  */
.policyDocumentation {
  padding-top: 20px;
}

.policyTableContents .contentHeader {
  font-weight: normal;
  color: #424242;
}

.policyTableContents .contents.active .contentHeader {
  font-weight: 500;
}

@media (max-width: 1012px) {
  .tableOfContent {
    flex: 1 1 300px;
    max-width: 100%;
    position: relative;
    top: auto;
    border: 1px solid #f3f3f3;
    border-radius: 10px;
  }

  .tableHeader {
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .tableHeader.active {
    border-bottom: 1px solid #f3f3f3;
  }

  .tableHeader.active .contentCaret i {
    transform: rotate(180deg);
    transition: all 0.4s;
  }

  .contentCaret {
    transform: rotate(360deg);
    display: flex;
    transition: all 0.4s;
  }

  .contentHidden {
    display: none;
  }

  .tableContents {
    padding: 10px 20px;
  }

  .contents.active .contentHeader {
    color: inherit;
  }

  .topic {
    border: none;
  }

  .topic:hover {
    border: none;
  }

  .topic.active {
    font-weight: inherit;
    border: none;
  }
}

@media (max-width: 768px) {
  .flagTitle {
    font-size: 14px;
  }

  .flagHeaders{
    flex-wrap: wrap-reverse;
    gap: 5px;
  }

  .flagBottom {
    font-size: 13px;
  }
}

/* extra */

.hidden {
  display: none;
}
