/* Make the top bar area white instead of the usual Casiopeia colours */
.container-header {
  background-color: white; 
  background-image: none;
}

/* Change the style of the tagline */
.site-description {
  margin-left: 50px;
/*  display: block !important;
  font-size: 25px !important;
  color: #00668F !important;
  justify-content: right !important; */
  /*display: block !important;*/
  font-size: 25px !important;
  color: #00668F !important;
  /*display: flex !important;*/
  align-items: center !important;
  justify-content: center !important;
  text-align: right;
}

/* We created our own brand area to allow for the text to be layed out as we wanted, because it didn't want to use the correct div, we had to go with the ID */
#mod-custom117 .site-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 20px;
}

#mod-custom117 .site-brand img {
  height: 200px;   /* whatever height you actually want */
  width: auto;
}

#mod-custom117 .site-brand-tagline {
  font-size: 25px !important;
  color: #00668F !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: right;
}

/* Make the top bar area white instead of the usual Casiopeia colours */
/*.container-header .navbar img {
  max-height: 500px; 
  width: auto;
}*/

/* Move the menu to the right hand side of the page at the top */
.container-nav{
  justify-content: right !important;
}

/* In case you want to put the logo in the middle at the top */
.navbar-brand{
/*  margin: auto;*/
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Changing the menu text colour */
.container-header .mod-menu {
  color: #00668F;
}

/* Changing the colour of the menu links */
.container-header .mod-menu a {
  color: #00668F;
  -moz-border-radius: 0 0 6px 6px
  border-radius: 0 0 6px 6px;
  padding: 3px 15px;
  -webkit-border-radius: 0 0 6px 6px;
}

/* Showing a grey background when hoovering over */
.container-header .mod-menu a:hover {
  background-color: #eee;
}

/* Menu item should open as you hover over it */
.metismenu-item:hover .mm-collapse {
  display: block!important;
}

/* Adjusting the colour of the hamburger menu which is shown on smaller displays*/
.container-header .navbar-toggler{
  color: #00668F;
  border: 1px solid #00668F;
}

/* Change the footer colour etc */
.footer {
    background-color: #00668F; /* Replace with your desired color code */
    background-image: none;    /* Removes the default gradient */
    color: #ffffff;            /* Sets text color */
}

/* Code to create a transparency effect on the welcome page image behind the text. */
.welcome-bg {
    position: relative;
}

.welcome-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 0;
}

.welcome-bg > * {
    position: relative;
    z-index: 1;
}

/* Testimonial two-column layout */
.testimonial-block {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 16px 0 40px 0;
}

/* Alternate: even blocks put image on left, quote on right */
.testimonial-block.alt {
    flex-direction: row-reverse;
}

/* Quote takes 2/3 of the space */
.testimonial-block blockquote.pullquote {
    flex: 2;
    margin: 0;
}

/* Attribution takes 1/3 */
.testimonial-attribution {
    flex: 1;
    text-align: center;
    flex-shrink: 0;
}

.testimonial-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
}

/* For logo substitutions — remove circle crop */
.testimonial-photo.is-logo {
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95em;
    color: #1a1a2e;
    margin: 6px 0 2px 0;
}

.testimonial-role {
    font-size: 0.85em;
    color: #666666;
    margin: 0;
    font-style: italic;
}

/* Blockquotes for the testimonial page(s) — updated with borders */
article blockquote.pullquote,
.item-page blockquote.pullquote {
    font-size: 1.2em;
    font-style: italic !important;
    border-left: 4px solid #00668F;
    border-right: 4px solid #00668F;
    padding: 10px 20px;
    text-align: center !important;
    margin: 10px auto;
    color: #00668F;
}

.testimonial-tag-date {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.testimonial-date {
    font-size: 0.8em;
    color: #888888;
    margin: 0;
    font-style: normal;
}

.testimonial-tag {
    display: inline-block;
    font-size: 0.75em;
    font-style: normal;
    background-color: #f0f0f0;
    color: #666666;
    border-radius: 12px;
    padding: 2px 10px;
    margin: 0;
}

/*.testimonial-tag {
    display: inline-block;
    font-size: 0.75em;
    font-style: normal;
    background-color: #e8f4f8;
    color: #00668F;
    border-radius: 12px;
    padding: 2px 10px;
    margin: 0;
}*/

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    font-size: 0.75em;
    font-style: normal;
    text-align: center;
    border-radius: 12px;
    padding: 2px 10px;
    margin: 0;
}

.tag--service {
    background-color: #00668F;
    color: #e8f4f8;
}

.tag--application {
    background-color: #e8f4f8;
    color: #00668F;
}

/* Hide default arrow */
details.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 15px 10px 35px;
    background-color: #f5f5f5;
    position: relative;
    border-radius: 4px;
    margin-bottom: 3px;
    text-align: justify;
}

details.faq summary::-webkit-details-marker {
    display: none;
}

/* Add + sign */
details.faq summary::before {
    content: '+';
    position: absolute;
    left: 12px;
    font-size: 1.2em;
    font-weight: bold;
    color: #00668F;
}

/* Change to - when open */
details.faq[open] summary::before {
    content: '-';
}

/* Open state - answer block */
details.faq[open] {
    background-color: #f9f9f9;
    border-left: 3px solid #00668F;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
}

details.faq[open] summary {
    background-color: #e8f3f8;
    border-radius: 0;
}

details.faq[open] > *:not(summary) {
    padding: 10px 15px 10px 35px;
    text-align: justify;
}

/* =========================================================
   Holistic Engineering — layout CSS to replace table layouts
   ========================================================= */

/* ---------------------------------------------------------
   1. NARROW BAND
   For intro/outro text blocks (e.g. "Here are some example
   problems..." and the closing "Do you want yours to be next?")
   Same narrow width as your main page text column.
   --------------------------------------------------------- */
.he-narrow {
  max-width: 936px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.he-full {
  max-width: 1320px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   2. WIDE TWO-COLUMN BAND
   Image(s) on one side, text on the other. Wider than the
   narrow band, but capped so it never exceeds the site width.
   Add class "he-img-right" to swap image/text sides via markup
   order — flex naturally respects HTML order, so just put the
   div you want first, first.
   --------------------------------------------------------- */
.he-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* vertically centres image col against text col on full width */
  gap: 36px;
  max-width: 1320px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.he-row .he-img-col {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px; /* spacing between stacked images if more than one */
}

.he-row .he-img-col img {
  width: 100%;
  height: auto;
  display: block;
}

.he-row .he-img-col img.he-img--small {
  width: 320px;
}

.he-row .he-img-col a.he-img--small {
  align-self: center;
}

.he-row .he-text-col {
  flex: 1 1 400px;
}

.he-row .he-text-col p,
.he-row .he-img-col p {
  margin: 0 0 1em 0;
}

/* ---------------------------------------------------------
   3. THREE-COLUMN BAND
   Flexible — any column can hold an image or text.
   Same gutter and max-width as the two-column band so the
   page stays visually consistent.
   --------------------------------------------------------- */
.he-row-3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* vertically centres image col against text col on full width */
  gap: 36px;
  max-width: 1320px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.he-row-3 .he-col {
  flex: 1 1 380px;
}

.he-row-3 .he-col-narrow {
  flex: 2 1 220px;
}

.he-row-3 .he-col-wide {
  flex: 2 1 460px;
}

.he-row-3 .he-col img {
  width: 100%;
  height: auto;
  display: block;
}

.he-row-3 .he-col p {
  margin: 0 0 1em 0;
}

/* Centred column variant — for columns with stacked image + heading + text */
.he-col.he-col-center {
  text-align: center;
}

.he-col.he-col-center img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px auto;
}

.he-col.he-col-center h5 {
  margin: 0 0 10px 0;
}

.he-col.he-col-center p {
  margin: 0;
}


/* ---------------------------------------------------------
   Responsive: stack everything on small screens
   --------------------------------------------------------- */
@media (max-width: 700px) {
  .he-row,
  .he-row-3 {
    align-items: flex-start; /* don't vertically center when stacked on mobile */
    gap: 24px;
  }

  .he-row .he-img-col,
  .he-row .he-text-col,
  .he-row-3 .he-col {
    flex: 1 1 100%;
  }
}

/* Adjustments to the menu so that the 3rd level drops out to the right when the screen is wide enough */
@media (min-width: 992px) {
  .mod-menu.metismenu .metismenu-item {
    position: relative;
  }

  /* Hide every submenu by default, and force it out of normal document
     flow regardless of nesting depth or any competing framework rule */
  .mod-menu.metismenu .mm-collapse {
    display: none !important;
    position: absolute !important;
    background: #ffffff !important;
    border: 1px solid #dfe3e7;
    border-radius: 5px;
    min-width: 220px;
    z-index: 999;
    margin: 0;
    padding: 0;
  }

  /* Level 1 -> Level 2: drop straight down under the top item */
  .mod-menu.metismenu > li.level-1 > .mm-collapse {
    top: 100% !important;
    left: 0 !important;
  }

  /* Level 2 -> Level 3: fly out to the right — forced even for the
     nested mm-collapse-within-mm-collapse case Cassiopeia otherwise
     pins to position:static */
  .mod-menu.metismenu li.level-2 > .mm-collapse,
  .mod-menu.metismenu .mm-collapse .mm-collapse {
    top: 0 !important;
    left: 100% !important;
  }

  /* Reveal on hover, keyboard focus, or the existing click-toggle */
  .mod-menu.metismenu .metismenu-item:hover > .mm-collapse,
  .mod-menu.metismenu .metismenu-item:focus-within > .mm-collapse,
  .mod-menu.metismenu .metismenu-item > .mm-collapse.mm-show {
    display: block !important;
  }

/* Level 2's toggle arrow should point right, since its submenu flies out
   sideways rather than dropping down */
.mod-menu.metismenu li.level-2 > .mm-toggler {
  transform: rotate(-90deg) !important;
}


.mod-menu.metismenu .mm-collapse li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

.mod-menu.metismenu .mm-collapse li a {
  width: auto !important;
  display: block;
  flex: 1 1 auto;
  padding: 8px 15px;
  color: #00668F !important;
  white-space: nowrap;
  text-decoration: none;
  background: transparent !important;
}

.mod-menu.metismenu .mm-collapse li .mm-toggler {
  flex: 0 0 auto;
  margin-right: 8px;
}

.mod-menu.metismenu .mm-collapse li:hover {
  background: #f2f2f2 !important;
}
  
  .mod-menu.metismenu .mm-collapse li a:hover {
    /*background: #f2f2f2 !important;*/
    background: transparent !important;
    color: #000000 !important;
  }
}

.metismenu.mod-menu .mm-toggler {
  color: #00668F !important;
}


#mod-custom119 {
  flex: 1 1 100%;
  width: 100%;
}

.footer_style { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 8px;
  width: 100%;
}

.spacer-left {
     margin-left: 30px;
}
