:root {
    --value-navy: #082652;
    --value-blue: #38a6dd;
    --value-blue-deep: #176da7;
    --value-blue-soft: #dff4fc;
    --value-sky: #eaf7fd;
    --value-coral: #38a6dd;
    --value-ink: #183454;
    --value-muted: #58708d;
    --value-cream: #fbf7ed;
    --value-line: rgba(8, 38, 82, 0.12);
    --value-shadow: 0 24px 60px rgba(8, 38, 82, 0.11);
    --value-glow: 0 0 60px rgba(56, 166, 221, 0.15);
}

html {
    scroll-behavior: smooth;
}

.value-page {
    background: #fff;
    color: var(--value-ink);
}

.value-page main {
    overflow: clip;
}
h1, h2, h3 {
    /* font-family: var(--playfair); */
    color: #f7fbfe;
}
/* ============================================
   TITLE DESIGN: "Our Philosophy" Style
   ============================================ */

.title-styled {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.08;
    letter-spacing: 0;
    margin: 0 0 18px;
}

/* First word(s): dark navy, normal weight, upright */
.title-styled .word-dark {
    color: #082652;
    font-weight: 400;
    font-style: normal;
}

.title-styled .word-dark-clinic {
    color: #ffffff;
    font-weight: 400;
    font-style: normal;
}
/* Last word(s): light blue, italic, medium weight */
.title-styled .word-light {
    color: #38a6dd;
    font-weight: 500;
    font-style: italic;
}

/* Underline accent
.title-styled.with-accent::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38a6dd, rgba(56, 166, 221, 0.14));
} */

/* Centered variant */
.title-styled.centered { text-align: center; }
.title-styled.centered.with-accent::after {
    margin-left: auto;
    margin-right: auto;
}

/* Dark background variant (clinic section) */
.dark-bg .title-styled .word-dark { color: #ffffff; }
.dark-bg .title-styled .word-light { color: #9be1ff; }
.dark-bg .title-styled.with-accent::after {
    background: linear-gradient(90deg, #9be1ff, rgba(155, 225, 255, 0.14));
}

/* ─────────────────────────────────────── */
/*  HERO BANNER ENHANCEMENTS
/* ─────────────────────────────────────── */
.value-page .academic-banner-static__overlay {
    background: linear-gradient(100deg, rgba(5, 31, 72, 0.92), rgba(8, 38, 82, 0.55) 55%, rgba(8, 38, 82, 0.14));
}

.value-hero {
    position: relative;
}

.value-hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.value-hero::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 166, 221, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.value-page .academic-banner-static__title {
    max-width: 820px;
}

/* ─────────────────────────────────────── */
/*  VALUE INTRO SECTION — Background elements
/* ─────────────────────────────────────── */

.ql-wrap {
    grid-template-columns: 0.8fr 1.4fr 1.3fr!important;
    gap: 10px!important;
}
.ql-section {
  position: relative;
  background:
    radial-gradient(circle at 9% 20%, rgba(56, 166, 221, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--el-light) 100%);
  border-top: 1px solid var(--el-line);
  border-bottom: 1px solid var(--el-line);
  padding: 40px 0 40px;
  overflow: hidden;
}

.ql-section::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 166, 221, 0.12) 0%, rgba(56, 166, 221, 0) 72%);
  pointer-events: none;
}

.ql-wrap {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.1fr;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.ql-eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--el-blue);
  margin-bottom: 22px;
  font-family: var(--montserrat);
}

.ql-heading {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--el-dark);
  margin-bottom: 28px;
}

.ql-divider {
  display: block;
  width: 72px;
  height: 4px;
  background: var(--el-blue);
}

.ql-para p {
  font-size: 1.25rem;
  color: var(--el-muted);
  max-width: 560px;
}

.ql-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ql-image--value {
  min-height: 360px;
  isolation: isolate;
}

.ql-image--value::before {
  content: "";
  position: absolute;
  inset: 8% 2% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 166, 221, 0.16), rgba(56, 166, 221, 0) 68%);
  z-index: -1;
}

.ql-image--value img {
  width: min(100%, 560px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(8, 38, 82, 0.16));
  transform: translateY(8px);
}

.ql-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1.5px dashed rgba(56, 166, 221, 0.42);
  z-index: 1;
}

.ql-ring::before {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 166, 221, 0.14) 0%, rgba(56, 166, 221, 0) 70%);
}

.ql-tape {
  position: absolute;
  top: 4px;
  right: 60px;
  width: 110px;
  z-index: 2;
}

/* ─────────────────────────────────────── */
/*  WELLBEING SECTION — Enhanced background
/* ─────────────────────────────────────── */
.wellbeing-section {
    position: relative;
    padding: 120px 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(56, 166, 221, 0.14), transparent 30%),
        radial-gradient(circle at 82% 72%, rgba(0, 40, 94, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 45%, #eef8fd 100%),
        var(--value-sky);
    isolation: isolate;
    overflow: hidden;
}

.wellbeing-section .container {
    position: relative;
    z-index: 2;
}

.wellbeing-section .value-heading {
    max-width: 860px;
    margin: 0 auto 54px;
    text-align: center;
}

.wellbeing-section .value-heading .title-styled {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
}

.wellbeing-section .value-heading p {
    max-width: 720px;
    margin: 18px auto 0;
    color: #4f6485;
    font-family: var(--montserrat_alternates);
    font-size: 1.05rem;
    line-height: 1.75;
}

.wellbeing-orbit {
    position: absolute;
    border: 1px solid rgba(56, 166, 221, 0.26);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 0 34px rgba(56, 166, 221, 0.08);
}

.wellbeing-orbit--one {
    top: -140px;
    right: -100px;
    width: 380px;
    height: 380px;
}

.wellbeing-orbit--two {
    bottom: 40px;
    left: -110px;
    width: 240px;
    height: 240px;
}

.wellbeing-section::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 6%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 166, 221, 0.15), transparent 70%);
    pointer-events: none;
    animation: valueBlobPulse 6s ease-in-out infinite alternate;
}

.wellbeing-section::after {
    content: "";
    position: absolute;
    bottom: 20%;
    right: 8%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 38, 82, 0.06), transparent 70%);
    pointer-events: none;
    filter: blur(12px);
}

.wellbeing-gallery {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr;
    grid-template-rows: repeat(2, 230px);
    gap: 24px;
    align-items: stretch;
}

.wellbeing-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 18px;
    box-shadow: 0 24px 58px rgba(0, 40, 94, 0.14);
    transform: translateZ(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wellbeing-card--large {
    grid-row: 1 / 3;
}

.wellbeing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(4, 27, 61, 0.86));
}

.wellbeing-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wellbeing-card:hover img {
    transform: scale(1.045);
}

.wellbeing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 68px rgba(0, 40, 94, 0.18);
}

.wellbeing-card__content {
    position: absolute;
    z-index: 1;
    right: 28px;
    bottom: 26px;
    left: 28px;
    color: #fff;
}

.wellbeing-card__content span,
.clinic-card>div span {
    display: block;
    margin-bottom: 7px;
    color: #9be1ff;
    font-family: var(--montserrat);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wellbeing-card__content h3 {
    max-width: 520px;
    margin: 0;
    font-family: var(--montserrat);
    font-size: clamp(1.2rem, 2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
}

.wellbeing-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid rgba(8, 38, 82, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.wellbeing-pillars article {
    padding: 30px;
    transition: background 0.3s ease;
}

.wellbeing-pillars article:hover {
    background: rgba(255, 255, 255, 0.6);
}

.wellbeing-pillars article+article {
    border-left: 1px solid var(--value-line);
}

.wellbeing-pillars i {
    margin-bottom: 18px;
    color: var(--value-coral);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.wellbeing-pillars article:hover i {
    transform: scale(1.15);
    color: var(--value-blue);
}

.wellbeing-pillars h3 {
    color: var(--value-navy);
    font-family: var(--poppins);
    font-size: 1.05rem;
    font-weight: 700;
}

.wellbeing-pillars p {
    margin: 0;
    color: var(--value-muted);
    font-family: var(--montserrat_alternates);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ─────────────────────────────────────── */
/* COUNSELLORS SECTION — SVG Ribbon Styles
/* ─────────────────────────────────────── */
.counsellors-section {
    position: relative;
    padding: 80px 20px 60px;
    background-color: #ffffff;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* SVG Rainbow Ribbon — single arch shape, peaks in the gap between cards,
   dips low at the outer edges, and hides behind the opaque parts of each card */
.counsellors-ribbon-svg {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 520px;
    z-index: 0;
    pointer-events: none;
}

.counsellors-section .container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.counsellor-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.counsellor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* Arch Frame Outer Container - opaque white bg hides the ribbon behind the
   card's bounding box; the rounded corners clip that bg away, letting the
   ribbon peek through right at the top corners, matching the reference */
.counsellor-card__arch-wrapper {
    position: relative;
    width: 100%;
    padding: 10px;
    border-radius: 200px 200px 0 0;
    border: 3px solid rgba(56, 166, 221, 0.78);
    border-bottom: none;
    background: #ffffff;
}

.counsellor-card__portrait {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 190px 190px 0 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

.counsellor-card__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.counsellor-card__content {
    text-align: center;
    margin-top: 14px;
    width: 100%;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.counsellor-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.25;
}

.counsellor-card__role {
    margin: 2px 0 18px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #000000;
}

.counsellor-card__actions {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000000;
    transition: transform 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 2px solid #2d8a8a;
    color: #2d8a8a;
    font-size: 1.25rem;
    margin-bottom: 6px;
    background-color: #fff;
}

.action-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
}

/* ─────────────────────────────────────── */
/*  CLINIC SECTION — Enhanced
/* ─────────────────────────────────────── */
.clinic-section {
    position: relative;
    padding: 110px 0;
    background: var(--value-navy);
    isolation: isolate;
    overflow: hidden;
}

/* Decorative star/sparkle pattern */
.clinic-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 50% 15%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 70% 45%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 60% 85%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 45% 40%, rgba(255, 255, 255, 0.06), transparent);
    pointer-events: none;
}

.clinic-section::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 166, 221, 0.1), transparent 70%);
    pointer-events: none;
}

.clinic-intro {
    display: grid;
    grid-template-columns: 90px minmax(0, 780px);
    gap: 28px;
    align-items: start;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.clinic-intro__icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(56, 166, 221, 0.18);
    color: #7bd3fa;
    font-size: 2rem;
    position: relative;
}

.clinic-intro__icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.clinic-intro h2 {
    color: #fff;
}

.clinic-intro p {
   color: #6c757d;
}

.clinic-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.clinic-card {
    display: grid;
    grid-template-columns: 46% 1fr;
    min-height: 310px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.clinic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.clinic-card>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.clinic-card:hover>img {
    transform: scale(1.05);
}

.clinic-card>div {
    align-self: center;
    padding: 30px;
}

.clinic-card>div span {
    color: var(--value-blue);
}

/* ─────────────────────────────────────── */
/*  SAFEGUARDING SECTION — Redesigned with visual impact
/* ─────────────────────────────────────── */
.safeguarding-section {
    position: relative;
    padding: 120px 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(56, 166, 221, 0.08), transparent 30%),
        radial-gradient(circle at 85% 65%, rgba(56, 166, 221, 0.07), transparent 28%),
        radial-gradient(circle at 50% 50%, rgba(8, 38, 82, 0.02), transparent 40%),
        linear-gradient(170deg, var(--value-cream) 0%, #fcf9f2 40%, #f5efe4 100%);
    isolation: isolate;
    overflow: hidden;
}

/* Large decorative blurred orb — top right */
.safeguarding-section::before {
    content: "";
    position: absolute;
    right: -100px;
    top: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 166, 221, 0.10), transparent 70%);
    pointer-events: none;
    filter: blur(40px);
    animation: safeguardFloat 8s ease-in-out infinite alternate;
}

/* Bottom left blurred orb */
.safeguarding-section::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 166, 221, 0.09), transparent 70%);
    pointer-events: none;
    filter: blur(30px);
    animation: safeguardFloat 10s ease-in-out infinite alternate-reverse;
}

/* Decorative shield icon pattern — enhanced */
.safeguarding-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.safeguarding-pattern i {
    position: absolute;
    color: rgba(56, 166, 221, 0.04);
    font-size: 2rem;
    animation: safeguardFloat 6s ease-in-out infinite;
}

.safeguarding-pattern i:nth-child(1) {
    top: 10%;
    left: 4%;
    font-size: 1.8rem;
    animation-delay: 0s;
}

.safeguarding-pattern i:nth-child(2) {
    top: 50%;
    left: 7%;
    font-size: 1.2rem;
    animation-delay: 1s;
}

.safeguarding-pattern i:nth-child(3) {
    bottom: 15%;
    right: 2%;
    font-size: 2.2rem;
    animation-delay: 2s;
}

.safeguarding-pattern i:nth-child(4) {
    top: 22%;
    right: 6%;
    font-size: 1.4rem;
    animation-delay: 0.5s;
}

.safeguarding-pattern i:nth-child(5) {
    bottom: 40%;
    right: 10%;
    font-size: 1rem;
    animation-delay: 1.5s;
}

.safeguarding-pattern i:nth-child(6) {
    top: 70%;
    left: 2%;
    font-size: 1.6rem;
    animation-delay: 2.5s;
}

.safeguarding-pattern i:nth-child(7) {
    bottom: 25%;
    left: 12%;
    font-size: 0.8rem;
    animation-delay: 3s;
}

/* Decorative dashed border ring */
.safeguarding-deco-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    border: 1px dashed rgba(56, 166, 221, 0.06);
    pointer-events: none;
    animation: counsellorSpin 80s linear infinite;
}

.safeguarding-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.safeguarding-image {
    position: relative;
}

/* Decorative border frame — larger, more prominent */
.safeguarding-image::before {
    content: "";
    position: absolute;
    top: -28px;
    left: -28px;
    width: 58%;
    height: 50%;
    border: 2px solid rgba(56, 166, 221, 0.30);
    border-radius: 34px 0 0;
    pointer-events: none;
    transition: border-color 0.4s ease, top 0.4s ease, left 0.4s ease;
}

.safeguarding-section:hover .safeguarding-image::before {
    border-color: rgba(56, 166, 221, 0.55);
    top: -34px;
    left: -34px;
}

/* Decorative corner accent — larger */
.safeguarding-image::after {
    content: "";
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 50px;
    height: 50px;
    border-right: 4px solid var(--value-coral);
    border-bottom: 4px solid var(--value-coral);
    border-radius: 0 0 14px 0;
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
}

.safeguarding-section:hover .safeguarding-image::after {
    opacity: 1;
    width: 60px;
    height: 60px;
}

.safeguarding-image img {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--value-shadow);
    transition: transform 0.6s ease;
}

.safeguarding-section:hover .safeguarding-image img {
    transform: scale(1.01);
}

.safeguarding-seal {
    position: absolute;
    right: -38px;
    bottom: 42px;
    display: grid;
    width: 140px;
    height: 140px;
    place-items: center;
    border: 8px solid var(--value-cream);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--value-blue), var(--value-blue-deep));
    color: #fff;
    text-align: center;
    box-shadow: 0 16px 30px rgba(8, 38, 82, 0.18);
    z-index: 2;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.safeguarding-section:hover .safeguarding-seal {
    transform: scale(1.10) rotate(-6deg);
    box-shadow: 0 28px 60px rgba(56, 166, 221, 0.35);
}

.safeguarding-seal i {
    margin-bottom: -14px;
    font-size: 2rem;
}

.safeguarding-seal span {
    font-family: var(--montserrat);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Safeguarding content enhancements */
.safeguarding-content {
    position: relative;
}

.safeguarding-content .value-kicker {
    position: relative;
}

.safeguarding-content h2 {
    position: relative;
}

.safeguarding-content h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--value-blue), transparent);
}

.safeguarding-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.safeguarding-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--value-line);
    border-radius: 999px;
    background: #fff;
    color: var(--value-navy);
    font-family: var(--montserrat);
    font-size: 0.78rem;
    font-weight: 700;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.safeguarding-points span:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 166, 221, 0.4);
    background: linear-gradient(135deg, #fff, var(--value-sky));
    box-shadow: 0 10px 24px rgba(8, 38, 82, 0.10);
}

.safeguarding-points i {
    color: var(--value-blue);
}

/* Shield badge overlay on image */
.safeguarding-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(8, 38, 82, 0.10);
    color: var(--value-navy);
    font-family: var(--montserrat);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    z-index: 3;
    transition: transform 0.3s ease;
}

.safeguarding-badge i {
    color: var(--value-coral);
    font-size: 1rem;
}

.safeguarding-section:hover .safeguarding-badge {
    transform: translateY(-2px);
}

/* ─────────────────────────────────────── */
/*  FAQ SECTION — Enhanced
/* ─────────────────────────────────────── */
.value-faq {
    position: relative;
    padding: 30px 0;
    background:#eaf7fe;
}

.value-faq::before {
    content: "";
    position: absolute;
    top: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(56, 166, 221, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.value-faq__grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.value-faq__intro {
    position: relative;
}

/* Keep the two-part FAQ title visually connected when it wraps on narrow screens. */
.value-faq__intro .section-title .title-right {
    display: block;
    margin-top: -0.2em;
}

/* Decorative question mark shadow */
.value-faq__mark {
    color: rgba(56, 166, 221, 0.1);
    font-family: var(--playfair);
    font-size: 15rem;
    font-style: italic;
    font-weight: 700;
    line-height: 0.8;
    animation: valueFloat 12s ease-in-out infinite;
}

.value-accordion {
    display: grid;
    gap: 14px;
}

.value-accordion__item {
    overflow: hidden;
    border: 1px solid var(--value-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(8, 38, 82, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.value-accordion__item:hover {
    border-color: rgba(56, 166, 221, 0.2);
    box-shadow: 0 16px 40px rgba(8, 38, 82, 0.08);
}

.value-accordion__item h3 {
    margin: 0;
}

.value-accordion__item button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 86px;
    padding: 20px 20px 28px !important;
    border: 0;
    background: transparent;
    color: var(--value-navy);
    font-family: var(--poppins);
    font-size: 0.98rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.value-accordion__item:not(.is-open) button {
    min-height: 72px;
    padding: 18px 20px !important;
}

.value-accordion__item button:hover {
    background: rgba(56, 166, 221, 0.03);
}

.value-accordion__item button span {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--value-sky);
    transition: background 0.3s ease;
}

.value-accordion__item button span::before,
.value-accordion__item button span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--value-blue);
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.value-accordion__item button span::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.value-accordion__item.is-open {
    border-color: rgba(56, 166, 221, 0.45);
    box-shadow: 0 16px 44px rgba(8, 38, 82, 0.1);
}

.value-accordion__item.is-open button span {
    background: var(--value-blue);
}

.value-accordion__item.is-open button span::before,
.value-accordion__item.is-open button span::after {
    background: #fff;
}

.value-accordion__item.is-open button span::after {
    transform: translate(-50%, -50%) rotate(0);
}

.value-accordion__answer {
    height: 0;
    overflow: hidden;
    transition: height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-accordion__answer>div {
padding: 10px 74px 18px 20px; /* Removed top padding from content */
    color: var(--value-muted);
    font-family: var(--montserrat_alternates);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ─────────────────────────────────────── */
/*  REVEAL ANIMATIONS
/* ─────────────────────────────────────── */
.value-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.value-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ─────────────────────────────────────── */
/*  KEYFRAMES
/* ─────────────────────────────────────── */
@keyframes valueFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes valueBlobPulse {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

@keyframes valuePulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

@keyframes counsellorSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes counsellorPulseDiamond {

    0%,
    100% {
        opacity: 0.3;
        transform: rotate(45deg) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: rotate(45deg) scale(1.15);
    }
}

@keyframes counsellorPulseCenter {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(56, 166, 221, 0.2);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 40px rgba(56, 166, 221, 0.4);
    }
}

@keyframes safeguardFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* ─────────────────────────────────────── */
/*  RESPONSIVE
/* ─────────────────────────────────────── */
@media (max-width: 991px) {
    .value-section-nav__inner {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .value-section-nav a {
        flex: 0 0 auto;
        min-width: 120px;
    }

    .value-intro__grid {
        grid-template-columns: 90px 1fr;
    }

    .value-intro__principles {
        grid-column: 2;
        grid-template-columns: repeat(3, 1fr);
    }

    .value-intro__principles div {
        flex-direction: column;
        text-align: center;
    }

    .clinic-gallery,
    .safeguarding-grid,
    .value-faq__grid {
        grid-template-columns: 1fr;
    }

    .clinic-card {
        grid-template-columns: 42% 1fr;
    }

    .safeguarding-grid,
    .value-faq__grid {
        gap: 55px;
    }

    .safeguarding-image {
        max-width: 700px;
    }

    .value-faq__mark {
        position: absolute;
        top: 0;
        right: 5%;
        font-size: 9rem;
    }

    .counsellor-grid {
        gap: 28px;
    }

    .counsellor-grid::before,
    .counsellor-grid::after {
        display: none;
    }

    .counsellors-deco-dots {
        display: none;
    }

    .counsellors-inner-ring,
    .counsellors-deco-accent,
    .safeguarding-deco-ring,
    .connector-line {
        display: none !important;
    }

    .safeguarding-badge {
        display: none;
    }
    .counsellor-card{
        width: 35% !important;
    }
    .counsellors-ribbon-svg{
        opacity: 0.3 !important;
        left: -3% !important;
    }
}

@media (max-width: 767px) {
    .ql-wrap{
        grid-template-columns:1fr !important;
        padding: 0 20px;
    }
    .value-page .academic-banner-static {
        min-height: 560px;
    }

    .value-section-nav {
        margin-top: -24px;
        padding: 0 14px;
    }

    .value-intro,
    .wellbeing-section,
    .counsellors-section,
    .clinic-section,
    .safeguarding-section,
    .value-faq {
        padding: 80px 0;
    }

    .value-intro__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-intro__number {
        font-size: 4.5rem;
    }

    .value-intro__principles {
        grid-column: 1;
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .value-intro__principles div {
        flex-direction: row;
        text-align: left;
    }

    .wellbeing-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .wellbeing-card,
    .wellbeing-card--large {
        grid-row: auto;
        min-height: 300px;
    }

    .wellbeing-pillars,
    .counsellor-grid,
    .clinic-gallery {
        grid-template-columns: 1fr;
    }

    .wellbeing-pillars article+article {
        border-top: 1px solid var(--value-line);
        border-left: 0;
    }

    .counsellor-card__portrait {
        height: 330px;
    }

    .clinic-intro {
        grid-template-columns: 1fr;
    }

    .clinic-card {
        grid-template-columns: 1fr;
    }

    .clinic-card>img {
        height: 260px;
    }

    .safeguarding-image img {
        min-height: 380px;
    }

    .safeguarding-seal {
        right: 12px;
        bottom: 12px;
        width: 104px;
        height: 104px;
    }

    .safeguarding-seal i {
        font-size: 1.4rem;
        margin-bottom: -10px;
    }

    .value-faq__mark {
        display: none;
    }

    .value-intro__deco,
    .counsellors-deco-dots,
    .counsellors-inner-ring,
    .counsellors-deco-accent,
    .safeguarding-deco-ring,
    .safeguarding-pattern,
    .safeguarding-badge,
    .connector-line {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .value-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .wellbeing-orbit,
    .counsellor-card,
    .clinic-card,
    .safeguarding-seal,
    .counsellors-section::before,
    .counsellors-section::after,
    .counsellors-inner-ring,
    .safeguarding-deco-ring {
        animation: none !important;
        transition: none !important;
    }
}

/* Section Base */
.counsellors-section {
    position: relative;
    padding: 70px 0 70px;
    background:
        radial-gradient(circle at 12% 28%, rgba(56, 166, 221, 0.09), transparent 24%),
        radial-gradient(circle at 88% 70%, rgba(56, 166, 221, 0.08), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
    overflow: hidden;
}

.counsellors-ribbon-svg {
    position: absolute;
    top: 54%;
    left: -10%;
    width: 120%;
    height: 240px;
    transform: translate3d(var(--counsellor-ribbon-x, 0%), -50%, 0);
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.counsellors-ribbon-svg path {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}

.counsellors-ribbon-svg path:nth-child(1) {
    stroke: var(--value-blue);
}

.counsellors-ribbon-svg path:nth-child(2) {
    stroke: #76c9ee;
}

.counsellors-ribbon-svg path:nth-child(3) {
    stroke: var(--value-coral);
}

.counsellors-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.counsellors-heading {
    max-width: 760px;
    margin: 0 auto 64px;
}

.counsellors-heading p {
    max-width: 680px;
    margin: 0 auto;
}

.counsellor-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 3;
}

/* Layering individual cards */
.counsellor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    position: relative;
}

.card-front {
    z-index: 3;
    /* Always in front of ribbon */
}

.card-back {
    z-index: 3;
}

/* Arch Frame */
.arch-frame {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: none;
}

/* Outer Gold Arch Border - Stops at the white badge */
.arch-frame::before {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: 24px;
    /* border: 2px solid rgba(56, 166, 221, 0.78); */
    border-radius: 152px 152px 48% 48% / 152px 152px 42px 42px;
    pointer-events: none;
    z-index: 4;
}

/* Inner Gold Arch Border - Stops at the white badge */
.arch-frame::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -6px;
    right: -6px;
    bottom: 30px;
    border: 2px solid rgba(56, 166, 221, 0.78);
    border-radius: 20px;
    pointer-events: none;
    z-index: 4;
}

/* Photo Container */
.portrait-box {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.portrait-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Curved White Text Badge (Redesigned curve matching the edited image) */
.text-badge {
    position: relative;
    margin-top: -38px;
    /* Pulls text box up over bottom of photo */
    background: #ffffff;
    border-radius: 50% 50% 0 0 / 35px 35px 0 0;
    /* Creates the pronounced dome curve */
    padding: 20px 10px 10px;
    text-align: center;
    z-index: 5;
    /* border: 5px solid #082652; */
    /* Ensures the white overlaps the photo & gold borders cleanly */
}

.text-badge .name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #082652;
    line-height: 1.25;
    font-family: var(--montserrat);
}

.text-badge .role {
    margin: 2px 0 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #38a6dd;
}

.counsellor-description {
    /* max-width: 300px; */
    margin: 18px auto 0;
    color: var(--value-muted);
    font-family: var(--montserrat_alternates);
    font-size: 0.86rem;
    line-height: 1.7;
    text-align: center;
}

/* .value-accordion__item button {
    transition: color 0.3s ease, background 0.35s ease;
} */


.value-accordion__item.is-open button {
    min-height: auto;
    padding-top: 22px !important;
    padding-bottom: 12px !important;
}


.value-accordion__item.is-open .value-accordion__answer {
    background: #ffffff;
}

/* Final value page refinements: blue-only theme and stronger section treatments. */
.value-page {
    --value-coral: var(--value-blue);
}

.value-heading h2,
.value-intro__copy h2,
.clinic-intro h2,
.safeguarding-content h2,
.value-faq__intro h2 {
    position: relative;
    color: var(--value-navy);
    letter-spacing: 0;
}

/* .value-heading h2::after,
.value-intro__copy h2::after,
.clinic-intro h2::after,
.value-faq__intro h2::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--value-blue), rgba(56, 166, 221, 0.14));
} */

.value-heading--center h2::after {
    margin-right: auto;
    margin-left: auto;
}

.value-kicker {
    color: var(--value-blue);
}

.wellbeing-section {
        background: #f9f3e5;
}

.wellbeing-card {
    border: 6px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    outline: 1px solid rgba(56, 166, 221, 0.30);
    outline-offset: -6px;
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(0, 40, 94, 0.14);
}

.wellbeing-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 12px;
    pointer-events: none;
}

.wellbeing-card::after {
    background:
        linear-gradient(180deg, rgba(8, 38, 82, 0.04) 10%, rgba(8, 38, 82, 0.86) 100%),
        linear-gradient(90deg, rgba(56, 166, 221, 0.28), transparent 55%);
}

.wellbeing-card__content {
    z-index: 2;
}

.wellbeing-pillars {
    border-color: rgba(56, 166, 221, 0.24);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(8, 38, 82, 0.08);
}

.wellbeing-pillars i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: var(--value-sky);
    color: var(--value-blue);
}

.counsellors-section {
    background:
        radial-gradient(circle at 12% 28%, rgba(56, 166, 221, 0.10), transparent 24%),
        radial-gradient(circle at 88% 70%, rgba(56, 166, 221, 0.08), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
}

.counsellors-ribbon-svg path:nth-child(2) {
    stroke: #76c9ee;
}

.counsellors-ribbon-svg path:nth-child(3) {
    stroke: #176da7;
}

.arch-frame::before,
.arch-frame::after {
    border-color: rgba(56, 166, 221, 0.78);
}

.clinic-section {
   padding: 30px 0 30px;
         background: #f9f3e5;
}

.clinic-section::after {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(143, 215, 243, 0.18), transparent 70%);
}

.clinic-intro {
    grid-template-columns: 86px minmax(0, 830px);
    align-items: center;
    padding: 28px;
    /* border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
   background: rgb(8 38 82);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px); */
}

.clinic-intro .value-kicker {
    color: #9be1ff;
}

.clinic-intro__icon {
   border-color: rgb(56 166 221);
    background: linear-gradient(145deg, rgb(56 166 221), rgb(8 38 82));
    color: #ffffff;
}

.clinic-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.clinic-card {
    grid-template-columns: 44% 1fr;
    min-height: 300px;
    border: 1px solid rgba(155, 225, 255, 0.28);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 253, 0.98));
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}

.clinic-card--wide {
    grid-column: 1 / -1;
    min-height: 260px;
}

.clinic-card>img {
    border: 8px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
}

.clinic-card h3 {
    margin: 0 0 10px;
    color: var(--value-navy);
    font-family: var(--poppins);
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 700;
}

.clinic-card p {
    margin: 0;
    color: var(--value-muted);
    font-family: var(--montserrat_alternates);
    font-size: 0.92rem;
    line-height: 1.75;
}

.clinic-support-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.clinic-support-strip article {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 18px 22px;
    border: 1px solid rgba(155, 225, 255, 0.24);
    border-radius: 20px;
 background: rgb(8 38 82);
    color: #ffffff;
    font-family: var(--montserrat);
    font-size: 0.92rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.clinic-support-strip i {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 14px;
    background: rgba(155, 225, 255, 0.18);
    color: #9be1ff;
}

.safeguarding-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
        radial-gradient(circle at 18% 48%, rgba(56, 166, 221, 0.17), transparent 30%),
        linear-gradient(135deg, #f5fcff 0%, #ffffff 48%, #eaf8fd 100%);
}

.safeguarding-seal {
    background: linear-gradient(145deg, #38a6dd, #176da7);
}

.safeguarding-content__icon {
    background: linear-gradient(135deg, #9be1ff, #38a6dd);
}

.safeguarding-points li::before {
    background: var(--value-blue);
}

.value-accordion__item.is-open button {
    background: linear-gradient(112deg, #38a6dd 0%, #258cc5 38%, #176da7 70%, #082652 100%);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .counsellors-section {
        padding: 80px 0 90px;
    }

    .counsellors-heading {
        margin-bottom: 52px;
    }

    .counsellor-grid {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .counsellors-ribbon-svg {
        top: 45%;
        left: -55%;
        width: 210%;
        opacity: 0.62;
    }
}

.safeguarding-section {
    position: relative;
    padding: 0px 0 50px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
        radial-gradient(circle at 18% 48%, rgba(56, 166, 221, 0.17), transparent 30%),
        linear-gradient(135deg, #f5fcff 0%, #ffffff 48%, #eaf8fd 100%);
}

.safeguarding-section::before {
    top: 54px;
    left: 3%;
    width: 400px;
    height: 255px;
    border: 1px solid rgba(56, 166, 221, 0.16);
    border-radius: 58% 42% 52% 48% / 46% 58% 42% 54%;
    background: rgba(56, 166, 221, 0.08);
    filter: none;
    animation: none;
}

/* .safeguarding-section::after {
    right: 3%;
    bottom: 52px;
    left: auto;
    width: 250px;
    height: 250px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(45deg, rgba(56, 166, 221, 0.08) 12.5%, transparent 12.5%, transparent 37.5%, rgba(56, 166, 221, 0.08) 37.5%, rgba(56, 166, 221, 0.08) 62.5%, transparent 62.5%, transparent 87.5%, rgba(56, 166, 221, 0.08) 87.5%),
        linear-gradient(-45deg, rgba(56, 166, 221, 0.08) 12.5%, transparent 12.5%, transparent 37.5%, rgba(56, 166, 221, 0.08) 37.5%, rgba(56, 166, 221, 0.08) 62.5%, transparent 62.5%, transparent 87.5%, rgba(56, 166, 221, 0.08) 87.5%);
    background-size: 34px 34px;
    opacity: 0.34;
    filter: none;
    animation: none;
} */

.safeguarding-ribbon {
    top: 50%;
    left: -6%;
    width: 46%;
    height: 92px;
    opacity: 0.72;
    transform: translateY(-50%) rotate(-5deg);
}

.safeguarding-grid {
    grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1fr);
    gap: clamp(58px, 7vw, 100px);
    max-width: 1080px;
    min-height: 430px;
    align-items: center;
}

.safeguarding-image {
    width: min(100%, 440px);
    justify-self: end;
    padding: 12px;
}

.safeguarding-image::before {
    inset: 4px;
    width: auto;
    height: auto;
    border: 5px solid #1d74a0;
    border-radius: 31% 69% 54% 46% / 55% 44% 56% 45%;
    background: rgba(56, 166, 221, 0.12);
    transform: rotate(-2deg);
    z-index: 0;
}

.safeguarding-image::after {
    top: -18px;
    right: 36px;
    bottom: auto;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 50%;
    background: rgba(56, 166, 221, 0.14);
    z-index: 0;
}

.safeguarding-section:hover .safeguarding-image::before {
    inset: 4px;
    border-color: #0f638d;
}

.safeguarding-image img {
    aspect-ratio: 1.08 / 0.9;
    min-height: 0;
    border-radius: 31% 69% 54% 46% / 55% 44% 56% 45%;
    border: 8px solid #effbff;
    box-shadow: 0 22px 44px rgba(8, 38, 82, 0.18);
    position: relative;
    z-index: 1;
}

.safeguarding-section:hover .safeguarding-image img {
    transform: none;
}

.safeguarding-seal {
    right: 18px;
    bottom: 18px;
    width: 82px;
    height: 82px;
    border: 5px solid #eaf7fb;
    background: linear-gradient(145deg, #2e9bd0, #176b9f);
}

.safeguarding-section:hover .safeguarding-seal {
    transform: rotate(-4deg);
    box-shadow: 0 16px 32px rgba(56, 166, 221, 0.3);
}

.safeguarding-seal i {
    margin: 0;
    font-size: 1.65rem;
}

.safeguarding-seal span {
    display: none;
}

.safeguarding-content {
    max-width: 540px;
}

.safeguarding-content__icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 22px;
    background:
       linear-gradient(135deg, #3dbced, #3dbced), #3dbced;
    color: var(--value-navy);
    font-size: 2rem;
    box-shadow: 0 16px 34px rgba(8, 38, 82, 0.12);
}

.safeguarding-content h2::after {
    width: 56px;
    height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--value-blue), #8fd7f3);
}

.safeguarding-content .value-lead {
    max-width: 520px;
    margin-bottom: 18px;
    color: #354f6d !important;
    font-size: 0.98rem !important;
    line-height: 1.72;
}

.safeguarding-points {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.safeguarding-points li {
    position: relative;
    padding-left: 22px;
    color: var(--value-ink);
    font-family: var(--montserrat);
    font-size: 0.9rem;
    font-weight: 700;
}

.safeguarding-points li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--value-navy);
}

@media (max-width: 991px) {
    .counsellor-grid {
        gap: 34px;
    }

    .safeguarding-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        text-align: center;
    }

    .safeguarding-image {
        width: min(100%, 640px);
        margin: 0 auto;
        justify-self: center;
    }

    .safeguarding-content {
        margin: 0 auto;
    }

    .safeguarding-content__icon {
        margin-right: auto;
        margin-left: auto;
    }

    .safeguarding-content h2::after {
        margin-right: auto;
        margin-left: auto;
    }

    .safeguarding-points {
        display: inline-grid;
        text-align: left;
    }
}

@media (max-width: 767px) {

    .counsellors-section,
    .safeguarding-section {
        padding: 82px 0;
    }

    .counsellor-grid {
        grid-template-columns: 1fr;
        gap: 62px;
    }

    .counsellor-card__portrait {
        height: 330px;
    }

    .counsellor-card__content>p:last-of-type {
        min-height: 0;
    }

    .counsellors-ribbon,
    .safeguarding-ribbon {
        opacity: 0.45;
    }

    .safeguarding-grid {
        gap: 54px;
    }

    .safeguarding-image {
        padding: 10px;
    }

    .safeguarding-image img {
        min-height: 0;
    }

    .safeguarding-seal {
        right: 10px;
        bottom: 10px;
        width: 68px;
        height: 68px;
    }
}

/* Keep the final cascade aligned with the requested blue-only value education theme. */
.value-page .safeguarding-points li::before {
    background: var(--value-blue);
}

.value-page .safeguarding-seal {
    background: linear-gradient(145deg, #38a6dd, #176da7);
}

.value-page .safeguarding-section:hover .safeguarding-seal {
    box-shadow: 0 16px 32px rgba(56, 166, 221, 0.3);
}

.value-page .clinic-card--wide {
    grid-column: 1 / -1;
}

.value-accordion__item.is-open button {
    color: #fff;
}

@media (max-width: 991px) {
    .clinic-gallery,
    .clinic-support-strip {
        grid-template-columns: 1fr;
    }

    .clinic-card,
    .clinic-card--wide {
        grid-template-columns: 42% 1fr;
    }
}

@media (max-width: 767px) {
    .clinic-intro {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .clinic-card,
    .clinic-card--wide {
        grid-template-columns: 1fr;
    }

    .clinic-card>img {
        height: 260px;
    }

    .clinic-support-strip article {
        min-height: 68px;
    }
    .counsellor-card{
        width: 90% !important;
    }
}
