
/* ==========================================
   OFSTED ASSESSMENT TRIANGLE - VERSION 2
   ========================================== */

.ofsted-triangle-section {
  padding: 85px 0 100px;
  background: #f4f8fc;
}

.ofsted-triangle-section > .section-wrap > .eyebrow,
.ofsted-triangle-section > .section-wrap > h2,
.triangle-intro {
  text-align: center;
}

.triangle-intro {
  max-width: 680px;
  margin: 0 auto 45px;
  color: #56677c;
  font-size: 17px;
  line-height: 1.8;
}

/* Three-column layout with bottom group */
.assessment-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 2.2fr)
    minmax(0, 1fr);
  grid-template-areas:
    "left triangle right"
    "bottom bottom bottom";
  align-items: center;
  gap: 32px 18px;
  width: 100%;
  margin: 0 auto;
}

.assessment-group-left {
  grid-area: left;
}

.assessment-group-right {
  grid-area: right;
}

.assessment-group-bottom {
  grid-area: bottom;
  width: min(100%, 760px);
  justify-self: center;
}

.assessment-group h3 {
  margin: 0 0 17px;
  font-size: 19px;
  color: #092452;
}

.assessment-group-left,
.assessment-group-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================
   TRIANGLE
   ========================================== */

.assessment-triangle {
  grid-area: triangle;
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 520;
  min-width: 0;
}

.assessment-outline {
  display: block;
  width: 100%;
  height: 100%;
}

/*
  Triangle coordinates:
  Apex (300,35)
  Base corners (40,475), (560,475)

  Incenter is approximately (300,327).
  Inradius is approximately 148 units.

  The centre circle is positioned and sized
  relative to the 600 x 520 viewBox.
*/
.assessment-centre {
  position: absolute;
  left: 50%;
  top: 62.9%;
  width: 49.3%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  background: #092452;
  border: 3px solid #ffffff;
  box-shadow: 0 12px 30px rgba(9,36,82,.14);
}

.assessment-centre img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Triangle labels */
.assessment-side-label {
  position: absolute;
  color: #092452;
  font-size: clamp(9px, 1vw, 13px);
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}

.label-left {
  left: 9%;
  top: 42%;
  transform: rotate(-59deg);
}

.label-right {
  right: 9%;
  top: 42%;
  transform: rotate(59deg);
}

.label-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================
   REUSABLE IMAGE + NAME ENTRIES
   ========================================== */

.assessment-entry {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px;
  border: 1px solid #d9e5f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(9,36,82,.06);
  transition: border-color .2s, box-shadow .2s;
  outline-offset: 3px;
}

.assessment-entry:hover,
.assessment-entry:focus,
.assessment-entry:focus-within {
  border-color: #57c9f3;
  box-shadow: 0 12px 28px rgba(9,36,82,.12);
}

.assessment-entry > img {
  display: block;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: cover;
  border-radius: 8px;
}

.assessment-entry-body {
  min-width: 0;
}

.assessment-entry h4 {
  margin: 3px 0 0;
  color: #092452;
  font-size: 14px;
  line-height: 1.4;
}

.assessment-entry p {
  display: none;
  margin: 10px 0 0;
  color: #56677c;
  font-size: 13px;
  line-height: 1.6;
}

/* Show description on hover and keyboard focus */
.assessment-entry:hover p,
.assessment-entry:focus p,
.assessment-entry:focus-within p {
  display: block;
}

.assessment-entry:focus-visible {
  outline: 3px solid #57c9f3;
}

/* Bottom row */
.assessment-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1050px) {
  .assessment-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "triangle triangle"
      "left right"
      "bottom bottom";
    gap: 30px;
  }

  .assessment-triangle {
    width: min(100%, 600px);
    justify-self: center;
  }

  .assessment-group-left,
  .assessment-group-right {
    align-self: start;
  }
}

@media (max-width: 650px) {
  .ofsted-triangle-section {
    padding: 65px 0;
  }

  .assessment-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "triangle"
      "left"
      "right"
      "bottom";
    gap: 30px;
  }

  .assessment-bottom-grid {
    grid-template-columns: 1fr;
  }

  .assessment-side-label {
    font-size: 9px;
  }

  .assessment-entry > img {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }
}

/* Touch devices must not require hover */
@media (hover: none) {
  .assessment-entry p {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assessment-entry {
    transition: none;
  }
}

/* Read More links for all three triangle groups */

.assessment-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  width: fit-content;
  margin-top: 12px;
  padding: 11px 18px;
  background: #092452;
  color: #ffffff;
  border: 2px solid #092452;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}

.assessment-read-more:hover {
  background: #57c9f3;
  border-color: #57c9f3;
  color: #061936;
  transform: translateY(-2px);
}

.assessment-read-more:focus-visible {
  outline: 3px solid #57c9f3;
  outline-offset: 3px;
}

/* Centre the bottom group's link */
.assessment-group-bottom > .assessment-read-more {
  display: flex;
  margin: 20px auto 0;
}

#our-approach {
  scroll-margin-top: 25px;
}

@media (prefers-reduced-motion: reduce) {
  .assessment-read-more {
    transition: none;
  }
}
