/*
 Theme Name:   Board Jagat
 Template:     generatepress
 Theme URI:    https://boardjagat.in/
 Description:  Simplifying board exam by providing step-by-step ncert solutions
 Author:       Jalandhar Paswan
 Author URI:   https://jalandharpaswan.com/
 Version:      1.0
*/
/*Braedcrumb*/
nav.rank-math-breadcrumb {
    color: var(--contrast-2);
    font-size: 85%;
    line-height: 1.5;
    overflow-x: scroll;
    white-space: nowrap;
    margin-bottom: .5em;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.rank-math-breadcrumb p {
    margin-bottom: 0;
}
/* H3 Style */
h3.wp-block-heading {
    background-color: var(--contrast-2);
    color: var(--base-3);
    padding-bottom: 8px;
    padding-left: 5px;
    padding-top: 5px;
    border-left: 25px solid var(--contrast);
}
/* Also Read */
.readalso {
    font-weight: 600;
    border: 1px solid var(--base);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    color: var(--global-color-8);
    padding: 12px;
    background: linear-gradient(to right, #eee, #eee);
    border-left: 3px solid var(--global-color-9);
    font-size: 18px;
}
/* TOC Block Container */
.wp-block-rank-math-toc-block {
  display: inline-block;
  padding: 10px;
  border-radius: 5px;
  border: 1px dashed var(--global-color-8);
  margin-bottom: 1.5em;
  background: var(--base-2);
}

/* Heading as Toggle */
.wp-block-rank-math-toc-block div {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
  font-weight: bold;
}

/* Arrow Indicator */
.wp-block-rank-math-toc-block div::after {
  content: "➤";
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}
.wp-block-rank-math-toc-block div.open::after {
  transform: rotate(90deg);
}

/* TOC Content (Collapsed by Default) */
.wp-block-rank-math-toc-block nav {
  max-height: 0; /* Prevent flash on load */
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 6px;
}

/* TOC Links */
.wp-block-rank-math-toc-block nav a:visited {
  color: var(--contrast-2); /* visited state */
}

/* List Style */
.wp-block-rank-math-toc-block nav li {
  margin-bottom: 2px;
  font-size: 90%;
}
/* Smooth scroll offset for sticky header */
[id] {
  scroll-margin-top: 5px; /* Adjust based on header height */
}