/*
   Styles for Education section
*/


/* Section banner. */

@media (min-width: 768px) { #colour-banner { background-color: var(--color-education-bg); } }


/* Main menu. */

#main-menu li#education { background-color: var(--color-education-bg); }
#main-menu li#education > a { color: var(--color-education-fg); font-weight: 400; }


/* Navigation breadcrumbs and related links. */

#crumbs-container { background-color: rgb(245 245 245); } /* Needs to be opaque for sticky positioning. */
@media (min-width: 768px) { #crumbs-container { background-color: rgb(153 0 0 / 0.075); } }
#content .relatedlinks a { background-color: rgb(153 0 0 / 0.075); }
#content .relatedlinks a:hover { background-color: rgb(153 0 0 / 0.15); }


/* Side menu. */

.side-menu .side-menu-link a::before { background-color: rgb(153 0 0 / 0.5); }
.side-menu .side-menu-link a::after { background-color: rgb(153 0 0 / 0.15); }


/* Paragraphs, list items, hyperlinks. */

#content a { font-weight: 500; background-color: rgb(153 0 0 / 0.1); }
#content a:hover { background-color: rgb(153 0 0 / 0.3); }

/*
   Button-only styles for patient-care pages using index.html (e.g., lifestyle-redesign).
   Ported from general-css-2025 so the "Book an Appointment"
   button matches the "Make an Appointment" styling on section.html pages.
*/

/* Common wrapper-action styles (from general-css-2025) */

#content .wrapper-action {
    display: flex;
    justify-content: left;
    color: #000;
    font-family: "National 2";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 125% */
    letter-spacing: -0.64px;
  }

  #content .wrapper-action a {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 20px;
    height: fit-content;
    border-radius: 8px;
    box-shadow: 0px 2px 2px rgb(0 0 0 / 0.4);
    text-decoration: none;
    cursor: pointer;
    font-family: "National 2";
    font-size: 22px;
    font-weight: 700;
    font-style: normal;
    line-height: 22px;
    letter-spacing: -0.88px;
    transition:
      background-color 0.25s ease,
      color 0.25s ease,
      transform 0.15s ease,
      box-shadow 0.15s ease;
  }

  #content .wrapper-action a:hover {
    transform: none;
    box-shadow: 0px 4px 10px rgb(0 0 0 / 0.35);
  }

  #content .wrapper-action a:active {
    box-shadow: 0px 2px 4px rgb(0 0 0 / 0.3);
  }

  #content .wrapper-action a::after {
    content: '';
    display: inline-block;
    margin-left: 0;
    opacity: 0;
    transform: translateX(0);
    transition:
      opacity 0.2s ease 0.01s,
      transform 0.2s ease 0.01s,
      margin-left 0.2s ease 0.01s;
    font-weight: 700;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: -0.88px;
    color: inherit;
  }

  #content .wrapper-action a:hover::after {
    content: ' ⟩';
    opacity: 1;
    margin-left: 8px;
    transform: translateX(2px);
  }


/* Button color overrides (from general-css-2025) */

#content .button-red.wrapper-action a {
  background: var(--color-usc-cardinal);
  color: var(--color-usc-gold);
}

#content .button-gold.wrapper-action a {
  background: var(--color-usc-gold);
  color: var(--color-black);
}

/* Styles for quiz questions. */

#quiz .quizquestion table
   { margin-left: 2em; margin-bottom: 2em; }
#quiz .quizquestion td
   { text-align: left; vertical-align: top;
     padding-bottom: 0.5em; padding-left: 5px; }
#quiz .quizquestion label { font-size: 125%; }

#content .quizresults { display: flex; flex-wrap: wrap;
                        justify-content: flex-start; margin: 2em 0; }
#content .quizresults p { margin: 0; padding: 0; }

#content .quizresults p.quizoption
   { flex: 10 1 50%; text-align: right; padding-right: 1em; }
#content .quizresults p.quizscore
   { flex: 1 10 30%; }

#content .quizresults p.quizscore span
   { font-size: 80%; color: #e0e0e0; background-color: #e0e0e0; }
@media (min-width: 768px)
   { #content .quizresults { justify-content: center; }
     #content .quizresults p.quizoption { flex: 10 1 48%; }
     #content .quizresults p.quizscore { flex: 1 10 48%; } }
