/* ============================================================================
   COMPOSITE ANALYTICA | SHARED WEBSITE STYLES
   Refactored: 23 October 2026

   Loaded after bootstrap_system_2014.css (Bootstrap 3.1.0).
   This stylesheet is shared by the homepage, CheFEM, FEA consultancy,
   contact pages and the historical materials forum.

   Maintenance notes:
   - Preserve existing class names: several are used by archived forum pages.
   - The global margin reset is legacy behaviour and is intentionally retained.
   - Keyboard focus is blue; mouse/touch focus has no persistent dark outline.
   - Homepage navigation cards are scoped to .homepage-nav-cards.
   ============================================================================ */

:root {
  --ca-blue: #239BED;
  --ca-text: #717171;
  --ca-border: #d2d2ce;
}

/* 01. GLOBAL BASE & LINKS ---------------------------------------------------- */

/* Legacy site-wide reset: do not remove without testing all page templates. */
* {
  margin: 0;
}

html {
  font-size: 18px;
  height: 100%;
}

body {
  height: 100%;
  background-color: #fff;
}

h2,
h3 {
  font-size: 24px;
  font-weight: 300;
}

a {
  color: #3a3a3a;
}

a:hover {
  color: #7a7a7a;
  text-decoration: none;
}

/* Bootstrap 3's default dark focus ring is unnecessary for mouse clicks.
   Keep a clear, consistent indicator for keyboard navigation. */
a:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

a:focus-visible {
  outline: 2px solid var(--ca-blue);
  outline-offset: 3px;
  box-shadow: none;
}

h1 {
  font-family: Verdana, Arial, sans-serif;
  font-size: 24px;
  font-weight: normal;
  color: #0091D0;
  padding: 10px 0;
  line-height: 30px;
  text-align: center;
}

/* 02. MASTHEAD & SIDE NAVIGATION ------------------------------------------- */

.masthead {
  padding: 27px;
}

.masthead a {
  color: var(--ca-text);
}

.masthead a:hover {
  color: #999;
}

/* Visual feedback only; focus outlines are controlled globally above.
   Avoid outline:none!important, which would hide keyboard focus. */
.masthead-nav .nav-link:hover,
.masthead-nav .nav-link:focus,
.masthead-nav .nav-link:active {
  background-color: transparent !important;
  box-shadow: none;
  color: #999;
  text-decoration: none;
}

.masthead img {
  max-width: 100%;
  height: auto;
}

.masthead-title {
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1;
}

.masthead-title a {
  color: #005C7F;
}

.masthead-lead {
  margin-bottom: 14px;
  font-weight: 100;
  font-size: 11px;
  color: var(--ca-text);
}

.masthead-lead a {
  font-weight: normal;
}

.masthead-nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 14px;
  font-size: 15px;
}

.nav-item {
  display: block;
}

.nav-link {
  line-height: 1.6;
}

.nav-link-active {
  font-weight: 500;
  color: #3a3a3a;
}

.masthead-hr {
  width: 130px;
  margin-top: 18px;
  margin-bottom: 18px;
  border-top-color: #eee;
  border-bottom: 0;
}

@media (min-width: 768px) {
  .masthead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 35%;
    max-width: 380px;
    padding: 54px 36px;
  }
}

@media (min-width: 768px) and (min-height: 700px) {
  .masthead {
    position: fixed;
  }
}

@media (min-width: 1170px) {
  .masthead {
    width: 25%;
  }
}

/* 03. PAGE LAYOUT & TYPOGRAPHY --------------------------------------------- */

.listing {
  max-width: 900px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.entry,
.page,
.list {
  margin-top: 0;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .listing {
    margin-left: 35%;
    width: 65%;
    padding-left: 0;
  }

  .entry,
  .page,
  .list {
    margin-top: 40px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1170px) {
  .listing {
    width: 70%;
    margin-left: 27.5%;
    margin-right: 2.5%;
  }
}

.entry p {
  margin-bottom: 0;
}

.entry-content {
  text-align: center;
}

.entry-title {
  /* The previous '18x' margin was invalid CSS; retain inherited top margin. */
  margin-bottom: 4px;
}

.entry-title a {
  color: #005C7F;
}

.entry-title a:hover {
  color: #7a7a7a;
}

.entry-date {
  font-weight: 300;
  color: #3a8a8a;
}

@media screen and (max-width: 1079px) {
  /* Standard responsive headings (including archived forum pages). */
  h1.entry-title {
    font-size: clamp(28px, 4vw, 36px) !important;
    margin-left: 0 !important;
    line-height: 1.1 !important;
  }

  /* Homepage and FEA consultancy: preserves their original inline rules. */
  h1.entry-title.ca-banner-title {
    font-size: clamp(26px, 4vw, 36px) !important;
    line-height: 1.0 !important;
  }

  /* CheFEM page uses a narrower maximum heading size. */
  h1.entry-title.ca-banner-title--chefem {
    font-size: clamp(26px, 4vw, 32px) !important;
  }
}

.colhead,
.colbody {
  font-family: Verdana, Arial, sans-serif;
  font-style: normal;
  color: var(--ca-text);
  padding: 10px 0;
}

.colhead {
  font-size: 18px;
  text-align: left;
}

.colbody {
  font-size: 14px;
  text-align: justify;
}

.bodytext1,
.bodytext2,
.bodytext3,
.bodytext4 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-style: normal;
  color: var(--ca-text);
  padding: 5px 0;
}

.bodytext1 { font-size: 18px; }
.bodytext2 { font-size: 14px; }
.bodytext3 { font-size: 12px; }
.bodytext4 { font-size: 11px; }

.related {
  padding-top: 3rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  border-top: 1px solid #e5e5e5;
}

.related-title {
  font-weight: 300;
}

.related .entry {
  margin-top: .5rem;
  margin-bottom: 1rem;
}

.related p {
  font-size: 18px;
}

/* 04. IMAGES, VIDEO & MEDIA ------------------------------------------------- */

.entry-icon {
  position: absolute;
  display: block;
  text-align: center;
  top: 50%;
  left: 0;
  right: 0;
  font-size: 6rem;
  color: #fff;
  text-shadow: 0 0 3rem rgba(0, 0, 0, .15);
  opacity: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  transition: opacity .2s linear;
  transition-delay: .05s;
}

.youtube {
  position: relative;
  display: block;
  border-radius: 3px;
}

.youtube img {
  display: block;
  width: 100%;
  transition: opacity .2s linear;
}

.image img {
  display: block;
  width: 100%;
}

.YouTubeFramePosition {
  margin-top: 30px;
  margin-left: 25px;
}

/* 05. HOMEPAGE: CLICKABLE INTRODUCTORY COLUMNS ----------------------------- */

.homepage-nav-cards .home-card-link {
  display: block;
  box-sizing: border-box;
  padding: 8px 10px 12px;
  margin: -8px -10px -12px;
  border-radius: 5px;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  background-color: transparent;
  transition: background-color .2s ease;
}

/* Highlight only with a fine pointer; touch receives active feedback below. */
@media (hover: hover) and (pointer: fine) {
  .homepage-nav-cards .home-card-link:hover {
    background-color: rgba(35, 155, 237, .055);
  }

  .homepage-nav-cards .home-card-link:hover .colhead {
    color: var(--ca-blue);
  }

  .homepage-nav-cards .home-card-link:hover .colhead::after {
    color: var(--ca-blue);
    transform: translateX(3px);
  }
}

.homepage-nav-cards .home-card-link:active,
.homepage-nav-cards .home-card-link:focus-visible {
  background-color: rgba(35, 155, 237, .07);
}

.homepage-nav-cards .home-card-link:focus-visible .colhead {
  color: var(--ca-blue);
}

@media screen and (min-width: 1200px) {
  .homepage-nav-cards .colhead::after {
    content: "\2192";
    display: inline-block;
    margin-left: .4em;
    font-family: Arial, sans-serif;
    font-size: .72em;
    font-weight: normal;
    color: #9aa9b6;
    transition: color .2s ease, transform .2s ease;
  }
}

/* 06. SEARCH --------------------------------------------------------------- */

.searchbox {
  background-image: url(search.png);
  width: 220px;
  z-index: 20;
  background-position: left;
  background-repeat: no-repeat;
  padding-left: 25px;
  padding-bottom: 4px;
  background-color: transparent;
  border-width: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-style: normal;
  color: var(--ca-text);
}

.searchbox:hover,
.searchbox:focus {
  background-color: #fff;
}

/* 07. ARCHIVED MATERIALS FORUM --------------------------------------------- */

/* Legacy forum styles are retained even when absent from modern pages. */
#virtualcontainer {
  margin-left: 0;
  margin-top: 75px;
  list-style-type: disc;
}

.forumheader {
  font-family: Bahnschrift, Verdana, Arial, sans-serif;
  text-align: left;
  font-weight: 900;
  color: var(--ca-blue);
  font-size: 22px;
}

.header3 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-style: normal;
  color: var(--ca-blue);
  padding: 5px 0;
}

.mextra {
  height: 1px;
  line-height: 1px;
  margin-top: 18px;
  margin-bottom: 18px;
  background: #eee;
  border-bottom: 0;
}

.mgrey {
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  color: var(--ca-blue);
  padding: 10px 0;
}

.mwhite {
  height: 1px;
  line-height: 1px;
  background: var(--ca-border);
  margin: 4px 0;
}

.dupdirtext {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-style: normal;
  color: var(--ca-blue);
  padding: 5px 0;
  width: 650px;
}

.messageeven,
.messageodd {
  padding: 10px 10px 0;
  border-radius: 10px;
  width: 650px;
  border: 1px solid var(--ca-border);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-style: normal;
  color: var(--ca-text);
  text-align: justify;
}

.messageeven { background-color: #fff; }
.messageodd  { background-color: #f8f8f8; }

.snormal {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-style: normal;
  color: var(--ca-text);
  margin: 0;
}

/* The forum JavaScript switches between these two classes on hover. */
.composebutton,
.composebutton-hover {
  display: block;
  width: auto;
  overflow: visible;
  color: var(--ca-blue);
  background-color: #f8f8f8;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--ca-border);
  border-radius: 4px;
}

.composebutton-hover {
  text-decoration: underline;
}

.termsandconditions {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-style: normal;
  color: var(--ca-text);
  margin-left: 0;
  text-align: justify;
}

/* 08. BUTTONS -------------------------------------------------------------- */

.ca-btn-wrapper {
  text-align: left;
  margin-top: 15px;
  margin-bottom: 10px;
}

.ca-newbtn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  border-radius: 4px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--ca-text);
  font-weight: 500;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease;
}

.ca-newbtn img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

.ca-newbtn span {
  display: inline-block;
}

.ca-newbtn:hover {
  color: #333;
  background: #ececec;
  border-color: #ccc;
}


/* Optional centered wide action button (opt-in modifier). */
.ca-newbtn-wide {
  width: 266px;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

/* CheFEM 3 software page: hero video call-to-action.
   The parent .youtube class already supplies position:relative and display:block. */
.chefem-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;

  background: rgba(210, 50, 45, .90);
  color: #fff;
  text-decoration: none;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 18px 44px;
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .35),
              0 4px 12px rgba(0, 0, 0, .25);
}

.chefem-cta:hover,
.chefem-cta:focus {
  background-color: #bb2d3b;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .chefem-cta {
    padding: 4px 16px;
    font-size: 11px;
  }
}

/* CheFEM product-page content: use natural paragraph spacing, not full justification. */
.chefem-page-content .colbody {
  text-align: left;
}

/* Core Technologies sits below the first TWO information columns only.
   The evaluation panel remains alongside it, as an independent right column.
   Uses the existing Bootstrap 3 grid; no page-wide structural changes. */
.chefem-core-tech {
  clear: both;
  text-align: left;
  margin: 6px 0 8px;
  padding: 13px 0 5px;
  border-top: 1px solid #e8e8e8;
}

.chefem-core-tech h2 {
  margin: 0 0 12px;
  padding: 0;
  font-family: Verdana, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ca-text);
}

.chefem-core-tech-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 15px;
  align-items: start;
  text-align: left;
}

.chefem-core-tech-columns ul {
  margin: 0;
  padding-left: 19px;
  list-style: square outside;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  /* Match .colbody: 14px text on a 20px line (Bootstrap 3 default). */
  line-height: 1.428571429;
  color: var(--ca-text);
}

.chefem-core-tech-columns li {
  margin-bottom: 0;
  overflow-wrap: break-word;
}

/* When the left information group becomes narrow, let the technology
   items wrap naturally instead of squeezing them into two thin columns. */
@media (max-width: 1199px) {
  .chefem-core-tech-columns {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
}

/* Keep the evaluation form within its Bootstrap column at ALL widths.
   In particular, the third column is narrower than 266px near 1200px. */
.chefem-evaluation-panel .contact-form-wrapper {
  width: 266px;
  max-width: 100%;
}

.chefem-evaluation-panel .contact-form .form-control {
  max-width: 100%;
}

.chefem-evaluation-panel .contact-form .btn-danger {
  max-width: 100%;
  white-space: normal;
}

/* 09. CONTACT & EVALUATION FORMS ------------------------------------------- */

.contact-form-wrapper {
  background: #f7f7f7;
  padding: 5px 15px;
  width: max-content;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.contact-form {
  text-align: left;
  font-size: 12px;
  color: var(--ca-text);
}

.contact-form .form-label {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--ca-text);
}

.contact-form .form-control {
  width: 234px; /* Original 450px width was capped at 234px. */
  max-width: 234px;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 4px;
  border-color: #d2d6de;
  color: var(--ca-text) !important;
}

.contact-form ::placeholder {
  color: var(--ca-text) !important;
  opacity: 1;
}

.contact-form .form-control:focus {
  border-color: #f15a4a;
  box-shadow: 0 0 0 .12rem rgba(241, 90, 74, .15);
}

.contact-form .mb-2 {
  margin-bottom: 8px !important;
}

.contact-form .btn-danger {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
}

.contact-form p.small {
  font-size: 11px !important;
  color: var(--ca-text) !important;
  margin-top: 4px;
}

/* Used for form controls beyond the two primary forms. */
input.form-control,
textarea.form-control {
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 12px;
  line-height: 1.2;
  height: auto;
  min-height: 18px;
}

/* 10. FOOTER & CLIENT LOGO SCROLLER ---------------------------------------- */

.footer {
  margin: 30px 0;
  padding: 20px 15px;
  color: #999;
  text-align: center;
}

.footer p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 30px;
}

.logo-scroller {
  overflow: hidden;
  width: 100%;
  position: relative;
  font-size: 13px;
  font-style: italic;
  font-family: Verdana, Arial, sans-serif;
  color: var(--ca-text);
  text-align: left;
}

.logo-track ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: scroll-logos 25s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.logo-track img {
  opacity: .9;
  transition: opacity .2s ease;
}

.logo-track img:hover {
  opacity: 1;
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 11. OVERLAYS & LEGACY LOADER --------------------------------------------- */

.loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #fafafa;
}

.overlay {
  position: absolute;
  display: none;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .8);
  z-index: 9999;
}

/* 12. ACCESSIBILITY / REDUCED MOTION --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .homepage-nav-cards .home-card-link,
  .homepage-nav-cards .colhead::after,
  .logo-track img {
    transition: none;
  }

  .logo-track ul {
    animation: none;
    will-change: auto;
  }
}
