p.caption {
  color: #777;
  margin-top: 10px;
}
p code {
  white-space: inherit;
}
pre {
  word-break: normal;
  word-wrap: normal;
}
pre code {
  white-space: inherit;
}

td, th {
  text-align: left;
}

/* Global values */
body {
  counter-reset: b  q;
}

h2 {
  color: red;
  counter-reset: c;
  counter-set: c 0;
}
h3 {
 /* color: red ;*/
  counter-reset: step-counter;
  font-weight: normal;
  font-size: 12pt !important;;
  text-indent: -2em;
  padding-left: 2em; 
}
h4 {
  
  font-size: 12pt !important;;
  font-weight: normal;
  color: blue;
  text-indent: -4em;
  padding-left: 4em;
}

h1:before {
  counter-increment: a;
  /*content: "Chapter " counter(a) " ";*/
  color: blue;
  counter-reset: b;
}
h2:before {
  counter-increment: b;
/*  counter-set: c 0;
  counter-reset: c;*/
  content: "Part ";
  color: red;
  counter-reset: c;
}

 
h3:before {
  counter-increment: c;
  font-weight: bold;
  content: "Step " counter(c) ": ";
 font-size: 12pt; 
  color: green;
}
 
h4:before {
  counter-increment: q;
  font-weight: bold;
  font-style: italic;
  content: "Question " counter(q) ": ";
 
  color: blue;
}
h3 .header-section-number {
  display: none;
}
h4 .header-section-number {
  display: none;
}

.full-width-underline {
  display: block;
  width: 92%;
  border-bottom: 1px solid blue; /* Adjust thickness and color as needed */
  margin: 10px 0;
   margin-left: 2.5em;
}
.extend-underline-indented {
  display: inline-block;
  position: relative;
  width: 100%;
  margin-left: 5em; /* Adjust the indentation as needed */
  border-bottom: 1px solid red; /* Adjust thickness and color */
    
}

.extend-underline-indented:after {
  content: '';
  display: block;
  border-bottom: 1px solid green; /* Adjust thickness and color */
  position: absolute;
  margin: 5px 0;
  left: 100%;
  right: 0;
  bottom: 0;
}

.custom-font {
    font-family: "Courier New";
#    color: blue;
   text-align: center;
   font-size: 18px;
}

.custom-fontsmallcaps {
    font-family: "Courier New";
#    color: blue;
   text-align: center;
   font-variant: small-caps;
   font-size: 20px;
}
.center {
  text-align: center;
}

/* Target the appendix chapter */
.appendix {
  counter-reset: figure table;
}

.appendix .caption-prefix {
  display: none; /* Hide the default "Figure A:" */
}

.appendix .caption::before {
  content: "Figure A." counter(figure) ": ";
  counter-increment: figure;
}

.appendix .table-caption::before {
  content: "Table A." counter(table) ": ";
  counter-increment: table;
}


 