
/* Layout */
.main-wrapper {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  position: relative;
  gap: 30px;
  padding: 0 20px;
}



/* Left Sidebar */
.docs-sidebar {
  width: 20%;
  min-width: 280px;
  max-width: 300px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 50px;
  height: auto;
  min-height: 100px;
  overflow-y: auto;
  align-self: flex-start;
  font-size: 16px;
}

/* Main Content */
.main-content {
  width: 60%;
  flex: 1;
}

.content-section {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-section h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 20px;
  
}
.content-section h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  font-weight: 600;
 
}

.content-section h3 {
  font-size: 22px;
  margin: 30px 0 15px;
  font-weight: 600;
  
}

.faq-list li .answer {
  border-top: 1px solid #ECEFF1;
  display: none;
  padding: 10px 20px;
  font-size: 18px;
}

.faq-list li .question {
  display: block;
  color: #051b2c;
  font-weight: 500;
  border: none;
  padding: 10px 20px;
  position: relative;
  font-size: 18px;
}

.faq-list li .question.on a {
  color: #fff;
  text-decoration: none;
}

.faq-list li .question a {
  color: #051b2c;
  text-decoration: none;
}
.faq-list li .question:after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #051b2c;
  left: 25px;
  margin-right: 10px;
  position: absolute;
  top: 10px;
}

/* Popup styles */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-container img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
  
}

.popup-container .close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .popup-container img {
      max-width: 95%;
      max-height: 80%;
      margin-top: 20px;
  }

 
}

@media screen and (max-width: 1440px) {
    .faq-list li .question {
        font-size: 16px;
    }
    .faq-list li .answer {
    border-top: 1px solid #ECEFF1;
    display: none;
    padding: 10px 20px;
    font-size: 16px;
    }
}

@media screen and (max-width: 767px) {
    .faq-list li .question:after {
        margin-right: 0;
        top: 10px;
        right: 10px;
}
}

@media screen and (max-width: 767px) {
    .faq-list li .question {
        font-size: 13px;
        padding: 10px 20px;
    }
    .faq-list li .answer {
        font-size: 13px;
        padding: 10px 20px;
    }
}


@media screen and (max-width: 375px) {
  .faq-list li .question:after {
    top: 15px;
  }
}




/* Right Sidebar */
.toc-sidebar {
  width: 20%;
  min-width: 280px;
  max-width: 300px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 50px;
  height: auto;
  overflow-y: auto;
  align-self: flex-start;
  font-size:16px;
}

/* Navigation Styles */
.nav-section {
  margin-bottom: 20px;
}

/* Sidebar Titles */
.nav-section h3,
.toc-sidebar h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-section-2 h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation Lists */
.nav-list,
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li,
.toc-list li {
  margin-bottom: 2px;
}

/* Left Sidebar Links ///*/
.nav-list li a {
  display: block;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  padding: 10px 15px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.nav-list li a:hover {
  color: #3740ff;
  background: #F3F4F6;
}

.nav-list li a.active {
  background: #3740ff;
  color: white;
  font-weight: 500;
}

/* TOC Styles */
.toc-list li > a {
  color: #44474D;
  text-decoration: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 15px;
  border-radius: 6px;
  line-height: 1.4;
  transition: all 0.2s ease;
  flex-direction: row-reverse;
}

/* Plus/Minus icons for TOC */
.toc-list > li.child-toc > a:after {
  content: '+';
  border: none;
  width: auto;
  height: auto;
  transform: none;
  font-size: 20px;
  font-weight: bold;
  margin-right: 8px;
  color: #44474D;
  position: absolute;
  left: 25px;
}

.toc-list > li.child-toc.expanded > a:after {
  content: '-';
  transform: none;
  margin-top: -2px;
}

/* TOC submenu */
.toc-list ul {
  display: block;
  padding-left: 20px;
  margin-top: 2px;
}

.toc-list ul li a {
  padding: 10px 15px;
  color: #666;
  line-height: 1.4;
}

/* Active states for TOC */
.toc-list li a:hover,
.toc-list ul li a:hover {
  color: #3740ff;
  background: #ffff;
}

.toc-list li a.active,
.toc-list ul a.active {
  color: #3740ff;
  background: white;
  font-weight: bold;
  border: 1px solid #3740ff;
}

.sub-list li a
{
  color: #3740ff;
  font-weight: 500;
  border: 0px solid #3740ff  !important;
}

.toc-list > li.child-toc.has-active-child > a {
  color: #3740ff;
  background: #F3F4F6;
  font-weight: 500;
}


/* Lists in Content */
.content-list {
  padding-left: 0;
  margin-bottom: 20px;
}

.content-list li {
  list-style: none;
  padding-right: 25px;
  position: relative;
  margin-bottom: 15px;
}

.content-list li:before {
  content: "\2022";
  color: #3740ff;
  font-weight: bold;
  position: absolute;
  right: 0;
}

.sub-list li {
    list-style: none;
    position: relative;
}
  
.sub-list li:before {
    content: "\2022";
    color: #3740ff;
    font-weight: bold;
    position: absolute;
    right: 0;
    top:6px;
}

/* Numbered Lists */
.numbered-list {
  list-style: none;
  padding-left: 0;
  counter-reset: item;
}

.numbered-list li {
  counter-increment: item;
  margin-bottom: 30px;
  padding-left: 35px;
  position: relative;
}

.numbered-list li:before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #3740ff;
}

/* CTA Box //*/
.cta-box {
  background: #ecf3ff;
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
  text-align: center;
}

.cta-box h3 {
  margin-bottom: 15px;
  color: #2C3E50;
  margin-top: 0px;
  font-weight: 800;
}

.cta-box p {
  margin-bottom: 0;
  color: #4A5568;
}



/* Links */
.content-section a {
  color: #3740ff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.content-section a:hover {
  text-decoration: none !important;
}

.btn-outline-prim {
  border-color: #0000fe;
  background: #0000FF;
}

.related-box-btm a {
  color: white !important;
}

.related-box-btm a:hover {
  color: white !important;
}



/* Responsive Styles */
@media (max-width: 1400px) {
  .main-wrapper {
    max-width: 1200px;
  }
}

@media (max-width: 991px) {
  .main-wrapper {
    flex-direction: column;
    padding: 0 15px;
  }
  
  .docs-sidebar,
  .main-content,
  .toc-sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
  
  .docs-sidebar,
  .toc-sidebar {
    position: static;
    margin-bottom: 5px;
  }
  
  .main-content {
    padding: 0;
  }

  .content-section {
    padding: 30px;
  }

  .content-section h1 {
    font-size: 32px;
  }
  
  .content-section h2 {
    font-size: 18px;
  }
  
  .content-section h3 {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .main-wrapper {
    padding: 0 10px;
  }

  .content-section {
    padding: 20px;
  }

  .content-section h1 {
    font-size: 28px;
  }

  .nav-list li a,
  .toc-list li > a {
    padding: 6px;
  }
  
}

@media (max-width: 414px) {

  .content-section h1 {
    font-size: 24px;
  }

  
  
}



/* Responsive Layout for Smaller Screens */
@media (max-width: 768px) {
  .main-wrapper {
    display: grid;
    grid-template-areas:
      "right" /* Right Sidebar (Top) */
      "main"  /* Main Content (Middle) */
      "left"; /* Left Sidebar (Bottom) */
    grid-template-columns: 1fr; /* Full width for each area */
    gap: 20px;
  }

  .docs-sidebar {
    grid-area: left;
    font-size:16px;
  }

  .main-content {
    grid-area: main;
  }

  .toc-sidebar {
    grid-area: right;
  }
}




  .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
  }
  .toc-toggle-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
  }
  .toc-list {
    margin-top: 10px;
    padding: 0;
    list-style: none;
    margin-bottom: 0px;
    display: block; /* Hidden by default for toggle */
  }
  .toc-list.active {
    display: block; /* Show when active */
  }
  .child-toc > .sub-list {
    list-style: none;
    display: none;
  }
  .child-toc.expanded > .sub-list {
    display: block;
  }

@media only screen and (max-width: 768px){
.toc-sidebar {
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    padding: 12px 15px 0px 15px;
    font-size: 16px;
}
}

@media only screen and (max-width: 767px){
  .toc-sidebar h3 {
    font-size: 13px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .toc-sidebar {
      width: 100%;
      background: white;
      border: 1px solid #ddd;
      padding: 12px 15px 0px 15px;
      font-size: 13px;
  }
  .docs-sidebar {
    grid-area: left;
    font-size:13px;
  }
  .toc-list {
    margin-top: 10px;
    padding: 0;
    list-style: none;
    display: none;
    margin-bottom: 10px;  
  }
  }


