/*-- -------------------------- -->
<---            About            -->
<--- -------------------------- -*/

/* Full-bleed image left / text panel right. Text panel background is
   explicitly white (not the site's --cream token) per spec, to read as
   a clean, bright contrast against the photo. Stacks image-on-top on
   mobile. */
@media only screen and (min-width: 0rem) {
  #about {
    width: 100%;
  }
  #about .cs-container {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  #about .cs-image-group {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  #about .cs-image-group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    box-shadow: none;
  }
  #about .cs-content {
    width: 100%;
    background-color: #fff;
    padding: 3.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  #about .cs-title {
    font-family: var(--headingFont);
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.2em;
    color: var(--navy);
    margin: 0 0 1.25rem;
  }
  #about .cs-text {
    font-family: var(--bodyFont);
    font-size: 1rem;
    line-height: 1.65em;
    color: var(--bodyTextColor);
    margin: 0;
  }

  /* Accreditation bar: row of professional body logos, no card box.
     Different logo shapes (wide/square/wide) so object-fit:contain keeps
     each one's own aspect ratio instead of stretching. */
  #about .cs-card-group {
    width: 100%;
    margin: 1.75rem 0 2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  #about .cs-item {
    list-style: none;
    padding: 0 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #about .cs-item:first-child {
    padding-left: 0;
  }
  #about .cs-item:not(:first-child) {
    border-left: 1px solid var(--secondaryLight);
  }
  #about .cs-item img {
    width: 100%;
    height: 2.25rem;
    max-width: none;
    object-fit: contain;
    display: block;
  }

  /* Accordion: native details/summary, no JS needed */
  #about .cs-accordion {
    width: 100%;
    margin: 0 0 2rem;
  }
  #about .cs-accordion-item {
    width: 100%;
    border-top: 1px solid var(--secondaryLight);
  }
  #about .cs-accordion-item:last-child {
    border-bottom: 1px solid var(--secondaryLight);
  }
  #about .cs-accordion-item summary {
    width: 100%;
    padding: 1.125rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--bodyFont);
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
  }
  #about .cs-accordion-item summary::-webkit-details-marker {
    display: none;
  }
  #about .cs-accordion-item summary:after {
    content: "";
    width: 0.625rem;
    height: 0.625rem;
    flex: none;
    border-right: 1.5px solid var(--navy);
    border-bottom: 1.5px solid var(--navy);
    transform: rotate(45deg);
    transition: transform 0.3s;
  }
  #about .cs-accordion-item[open] summary:after {
    transform: rotate(-135deg);
  }
  #about .cs-accordion-body {
    padding: 0 0 1.25rem;
  }
  #about .cs-accordion-body p {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    line-height: 1.6em;
    color: var(--bodyTextColor);
    margin: 0;
  }
}

/* Desktop - 64rem: side-by-side row, text panel vertically centred */
@media only screen and (min-width: 64rem) {
  #about .cs-container {
    flex-direction: row;
    align-items: stretch;
  }
  #about .cs-image-group {
    flex: 0 0 50%;
    aspect-ratio: auto;
  }
  #about .cs-content {
    flex: 0 0 50%;
    justify-content: center;
    padding: 3rem clamp(3rem, 6vw, 6rem);
  }
  #about .cs-title {
    font-size: 2.5rem;
  }
}
