/*Container buttons section chapters*/
.section_container_buttons_chapters {
  display: flex;
  justify-content: left;
  align-items: left;
  flex-wrap: wrap;
  padding: 0px 0px;
  margin: 0px 0px;
}
.section_container_buttons_chapters_box {
  display: flex;
  justify-content: center;
  align-items: left;
  flex-wrap: wrap;
  padding: 0px 0px;
  margin: 0px 0px;
}
/*End container buttons section chapters*/

/*Header: rt5-3: #789091*/
.header_css {
  background-color: #789091;
  color: #000000;
  min-height: 200px;
}

.header_css img {
  max-width: 400px;
  padding: 15px 20px;
}

.header_css .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/*End header*/

/* section_1 */
.section_1 {
  margin: 0 auto;
  padding: 30px 30px;
  background: #4a736f;
}
.section_1 .container {
  max-width: 1320px;
  display: flex;
  background: #4a736f;
  flex-direction: row;
}
.section_1 .container .box {
  flex: 1;
  background: #4a736f;
  color: #000000;
  border-radius: 5px;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: center;
}
.section_1 .container .box:nth-of-type(1) {
  background: #17a2b8; /* rt5-5: #17a2b8  */
  flex-grow: 1;
  text-align: left;
}
.section_1 .container .box:nth-of-type(2) {
  background: #4a736f;
  flex-grow: 2;
  padding: 15px 20px;
}
.section_1 .container .boxa {
  flex: 1;
  background: #4a736f;
  color: black;
  border-radius: 5px;
  margin: 20px 0px;
  padding: 15px 0px;
  text-align: center;
}
.section_1 .container .boxa:nth-of-type(1) {
  background: #4a736f; /* rt5-5: #17a2b8  */
  flex-grow: 2;
  text-align: left;
}
.section_1 .container .boxa:nth-of-type(2) {
  background: #17a2b8;
  flex-grow: 1;
  padding: 15px 20px;
  text-align: left;
}

/*Container buttons section section_1a*/
.container_buttons_links_section_1a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.container_buttons_links_section_1a a:hover {
  color: #17a2b8;
}
/*End container buttons section section_1a*/
/*Container buttons section section_1b*/
.container_buttons_links_section_1b {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.container_buttons_links_section_1b a:hover {
  color: #4a736f;
}
/*End container buttons section section_1b*/
/* btn-section1 */
.btn-section1 {
  padding: 10px 10px;
  margin: 10px 10px 10px 10px;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  background-color: #4a736f;
  border: 2px solid #17a2b8;
}
.btn-section1:hover {
  color: #000000;
  background-color: #17a2b8;
  border: 2px solid #17a2b8;
}
/* End btn-section1 */
/* btn-section1_box */
.btn-section1_box {
  padding: 10px 10px;
  margin: 10px 10px 10px 10px;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  background-color: #17a2b8;
  border: 2px solid #4a736f;
}
.btn-section1_box:hover {
  color: #000000;
  background-color: #4a736f;
  border: 2px solid #4a736f;
}
/* End btn-section1_box */
/* End section_1 */

/* section_2 */
.section_2 {
  margin: 0 auto;
  padding: 30px 30px;
  background: #9cd5c0;
}
.section_2 .container {
  max-width: 1320px;
  display: flex;
  background: #9cd5c0;
  flex-direction: row;
}
.section_2 .container .box {
  flex: 1;
  background: #9cd5c0;
  color: #000000;
  border-radius: 5px;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: center;
}
.section_2 .container .box:nth-of-type(1) {
  background: #027b63; /* rt5-5: #027B63  */
  flex-grow: 1;
  text-align: left;
}
.section_2 .container .box:nth-of-type(2) {
  background: #9cd5c0;
  flex-grow: 2;
  padding: 15px 20px;
}
.section_2 .container .boxa {
  flex: 1;
  background: #9cd5c0;
  color: black;
  border-radius: 5px;
  margin: 20px 10px;
  padding: 15px 0px;
  text-align: center;
}
.section_2 .container .boxa:nth-of-type(1) {
  background: #027b63; /* rt5-5: #027B63  */
  flex-grow: 1;
  padding: 15px 20px;
  text-align: left;
}
.section_2 .container .boxa:nth-of-type(2) {
  background: #027b63;
  flex-grow: 1;
  padding: 15px 20px;
  text-align: left;
}

/* Questions */
.section_2 .container .col .box_questions_two {
  flex: 1;
  background: #9cd5c0;
  color: #fff;
  border-radius: 5px;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: center;
}
.section_2 .container .col .box_questions_two:nth-of-type(1) {
  background: #9cd5c0;
  flex-grow: 1;
  text-align: left;
}
.section_2 .container .col .box_questions_two:nth-of-type(2) {
  background: #f2b84b;
  flex-grow: 6;
  padding: 15px 20px;
}
.section_2 .container .col .box_questions_two:nth-of-type(3) {
  background: #f2b84b;
  flex-grow: 6;
  padding: 15px 20px;
}
.section_2 .container .col .box_questions_two:nth-of-type(4) {
  background: #9cd5c0;
  flex-grow: 1;
  padding: 15px 20px;
}

/* section_3 */
.section_3 {
  margin: 0 auto;
  padding: 30px 30px;
  background: #17a2b8;
}
.section_3 .container {
  max-width: 1320px;
  display: flex;
  background: #17a2b8;
  flex-direction: row;
}
.section_3 .container .box {
  flex: 1;
  background: #17a2b8;
  color: #000000;
  border-radius: 5px;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: center;
}
.section_3 .container .box:nth-of-type(1) {
  background: #4a736f; /* rt5-5: #4a736f  */
  flex-grow: 1;
  text-align: left;
}
.section_3 .container .box:nth-of-type(2) {
  background: #17a2b8;
  flex-grow: 2;
  padding: 15px 20px;
}
.section_3 .container .boxa {
  flex: 1;
  background: #17a2b8;
  color: black;
  border-radius: 5px;
  margin: 20px 0px;
  padding: 15px 0px;
  text-align: center;
}
.section_3 .container .boxa:nth-of-type(1) {
  background: #17a2b8; /* rt5-5: #4a736f  */
  flex-grow: 2;
  text-align: left;
}
.section_3 .container .boxa:nth-of-type(2) {
  background: #4a736f;
  flex-grow: 1;
  padding: 15px 20px;
  text-align: left;
}
.section_3 .container .box_three {
  flex: 1;
  background: #17a2b8;
  color: #000000;
  border-radius: 5px;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: center;
}
.section_3 .container .box_three:nth-of-type(1) {
  background: #17a2b8;
  flex-grow: 1;
  text-align: left;
}
.section_3 .container .box_three:nth-of-type(2) {
  background: #4a736f;
  flex-grow: 6;
  padding: 15px 20px;
}
.section_3 .container .box_three:nth-of-type(3) {
  background: #17a2b8;
  flex-grow: 1;
  padding: 15px 20px;
}
/*Container buttons section section_3a*/
.container_buttons_links_section_3a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.container_buttons_links_section_3a a:hover {
  color: #4a736f;
}
/*End container buttons section section_3a*/
/*Container buttons section section_3b*/
.container_buttons_links_section_3b {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.container_buttons_links_section_3b a:hover {
  color: #17a2b8;
}
/*End container buttons section section_3b*/
/* btn-section3 */
.btn-section3 {
  padding: 10px 10px;
  margin: 10px 10px 10px 10px;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  background-color: #17a2b8;
  border: 2px solid #4a736f;
}
.btn-section3:hover {
  color: #000000;
  background-color: #4a736f;
  border: 2px solid #4a736f;
}
/* End btn-section3 */
/* btn-section3_box */
.btn-section3_box {
  padding: 10px 10px;
  margin: 10px 10px 10px 10px;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  background-color: #4a736f;
  border: 2px solid #17a2b8;
}
.btn-section3_box:hover {
  color: #000000;
  background-color: #17a2b8;
  border: 2px solid #17a2b8;
}
/* End btn-section3_box */
/* End section_3 */

/* section_4 */
.section_4 {
  margin: 0 auto;
  padding: 30px 30px;
  background: #027b63;
}
.section_4 .container {
  max-width: 1320px;
  display: flex;
  background: #027b63;
  flex-direction: row;
}
.section_4 .container .box {
  flex: 1;
  background: #027b63;
  color: #000000;
  border-radius: 5px;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: center;
}
.section_4 .container .box:nth-of-type(1) {
  background: #9cd5c0; /* rt5-5: #9cd5c0  */
  flex-grow: 1;
  text-align: left;
}
.section_4 .container .box:nth-of-type(2) {
  background: #027b63;
  flex-grow: 2;
  padding: 15px 20px;
}
.section_4 .container .boxa {
  flex: 1;
  background: #027b63;
  color: black;
  border-radius: 5px;
  margin: 20px 0px;
  padding: 15px 0px;
  text-align: center;
}
.section_4 .container .boxa:nth-of-type(1) {
  background: #027b63; /* rt5-5: #9cd5c0  */
  flex-grow: 2;
  text-align: left;
}
.section_4 .container .boxa:nth-of-type(2) {
  background: #9cd5c0;
  flex-grow: 1;
  padding: 15px 20px;
  text-align: left;
}
.section_4 .container .box_two {
  flex: 1;
  background: #9cd5c0;
  color: black;
  border-radius: 5px;
  margin: 20px 0px;
  padding: 15px 0px;
  text-align: center;
}
.section_4 .container .box_two:nth-of-type(1) {
  background: #9cd5c0; /* rt5-5: #17a2b8  */
  flex-grow: 1;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: left;
}
.section_4 .container .box_two:nth-of-type(2) {
  background: #9cd5c0;
  flex-grow: 1;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: left;
}
.section_4 .container .box_three {
  flex: 1;
  background: #027b63;
  color: #000000;
  border-radius: 5px;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: center;
}
.section_4 .container .box_three:nth-of-type(1) {
  background: #027b63;
  flex-grow: 1;
  text-align: left;
}
.section_4 .container .box_three:nth-of-type(2) {
  background: #9cd5c0;
  flex-grow: 6;
  padding: 15px 20px;
}
.section_4 .container .box_three:nth-of-type(3) {
  background: #027b63;
  flex-grow: 1;
  padding: 15px 20px;
}
/*Container buttons section section_4a*/
.container_buttons_links_section_4a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.container_buttons_links_section_4a a:hover {
  color: #9cd5c0;
}
/*End container buttons section section_4a*/
/*Container buttons section section_4b*/
.container_buttons_links_section_4b {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.container_buttons_links_section_4b a:hover {
  color: #027b63;
}
/*End container buttons section section_4b*/
/* btn-section4 */
.btn-section4 {
  padding: 10px 10px;
  margin: 10px 10px 10px 10px;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  background-color: #027b63;
  border: 2px solid #9cd5c0;
}
.btn-section4:hover {
  color: #000000;
  background-color: #9cd5c0;
  border: 2px solid #9cd5c0;
}
/* End btn-section4 */
/* btn-section4_box */
.btn-section4_box {
  padding: 10px 10px;
  margin: 10px 10px 10px 10px;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  background-color: #9cd5c0;
  border: 2px solid #027b63;
}
.btn-section4_box:hover {
  color: #000000;
  background-color: #027b63;
  border: 2px solid #027b63;
}
/* End btn-section4_box */
/* End section_4 */

/* Table */
.section_2 .container .boa205_table {
  /* max-width: 1320px; */
  background: #9cd5c0;
  display: block;
  width: 100%;
}
.section_2 .container .boa205_table .box {
  flex: 1;
  background: #6da6a6;
  color: #343a40;
  border-radius: 10px;
  margin: 20px 10px;
  padding: 15px 20px;
  text-align: center;
}

/* Table buttons */
.section_2 .container .boa205_table_button {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.section_2 .container .boa205_table_button .box {
  flex: 1;
  background: #9fa7bf;
  color: #343a40;
  border-radius: 10px;
  margin: 10px 10px;
  padding: 10px 10px;
  text-align: center;
}

.table-responsive-mobile {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background: white;
  padding-bottom: 5px;
}

.table-responsive-mobile table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* prevents column overlap on small screens */
}

/* Wrapper for questions section */
.questions-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  padding: 20px 0;
}

/* Empty columns to center the middle two columns on desktop */
.col-spacer {
  flex: 1;
}

/* Columns that contain each question */
.question-col {
  flex: 3;
  min-width: 280px;
  display: flex;
}

/* Yellow box styling */
.question-box {
  background: #f2b84b;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  min-height: 300px; /* box grows if needed */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Inputs inside questions */
.question-input {
  font-size: 16px; /* normal on desktop */
}

/* Ensure question boxes use your background color */
.box_questions_two,
.question-box {
  background: #f2b84b !important; /* force the color */
  padding: 20px;
  border-radius: 8px;
}

/* Default input style */
.question-input {
  font-size: 16px; /* normal desktop size */
}

@media (max-width: 768px) {
  .section_container_buttons_chapters {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .section_1 .container .boxa:nth-of-type(2) {
    max-width: 300px;
  }
  .section_2 .container .box:nth-of-type(2) {
    max-width: 300px;
  }
  .section_2 .container .boxa:nth-of-type(2) {
    max-width: 300px;
  }
  .section_3 .container .boxa:nth-of-type(2) {
    max-width: 300px;
  }
  .header_css .container {
    flex-direction: column;
    padding-top: 20px;
    text-align: center;
  }
  .section_1 .container {
    flex-direction: column;
    padding: 10px;
    text-align: center;
  }
  .section_2 .container {
    flex-direction: column;
    padding: 10px;
    text-align: center;
  }
  .section_3 .container {
    flex-direction: column;
    padding: 10px;
    text-align: center;
  }
  .section_4 .container {
    flex-direction: column;
    padding: 10px;
    text-align: center;
  }
  #instructionsModalInstructions1 {
    max-width: 325px;
  }
  /* Reduce font size on phones */
  .table-responsive-mobile table th,
  .table-responsive-mobile table td {
    font-size: 12px;
    padding: 6px 8px;
    white-space: nowrap;
  }

  .boa205_table_button {
    flex-direction: column;
    align-items: center; /* centers children */
    justify-content: center;
  }

  /* Center each input box */
  .boa205_table_button .box {
    width: 100%;
    max-width: 350px; /* adjust as you prefer */
    margin: 8px auto; /* auto = centered */
    text-align: center;
  }

  /* Make the labels + inputs scale nicely */
  .boa205_table_button .box label {
    font-size: 12px;
  }

  .boa205_table_button .box input {
    font-size: 12px !important;
  }

  /* Center the submit button too */
  .form-group {
    text-align: center;
  }

  .form-group .btn {
    width: 100%;
    max-width: 250px;
  }
  /* Override Bootstrap's .form-control-lg on phones */
  .form-control-lg {
    font-size: 12px !important;
    padding: 4px 8px !important; /* optional: reduces input height */
  }
  .btn-lg {
    font-size: 12px !important;
    padding: 4px 8px !important; /* optional: reduces input height */
  }
  .questions-section {
    flex-direction: column;
    align-items: center;
  }

  .col-spacer {
    display: none; /* remove empty columns */
  }

  .question-col {
    width: 100%;
  }

  /* Smaller minimum height for compact mobile view */
  .question-box {
    min-height: 220px;
  }

  /* Ensure text stays readable and doesn’t overflow */
  .question-box p,
  .question-box legend {
    font-size: 14px;
  }

  /* Input size on phones */
  .question-input {
    font-size: 12px !important;
    height: 32px;
    padding: 4px 8px;
  }

  /* Submit button aligns and sizes correctly */
  .question-box .btn {
    width: 100%;
    font-size: 14px;
    padding: 6px 10px;
  }
  .question-input {
    font-size: 12px !important;
    padding: 6px 10px; /* optional: better mobile spacing */
  }

  /* Make the legend smaller too if you like */
  .question-box legend {
    font-size: 16px;
  }

  /* Reduce paragraph font if needed */
  .question-box p {
    font-size: 14px;
  }
}
