
/* ==========================================
   familyFIRST
   CHILD DEVELOPMENT INDIVIDUAL SERVICES
   SHARED STYLESHEET
   ========================================== */

   body {
    background-color: #F1ECE3 !important;
}

.ff-neuro-page {
    --ff-heading: #76513B;
    --ff-espresso: #2D1F17;
    --ff-sage: #859F7D;
    --ff-terracotta: #C96F56;
    --ff-sand: #EDE8DF;
    --ff-beige: #D6C6B6;
    --ff-body: #665F59;

    color: var(--ff-espresso);
}

.ff-neuro-page *,
.ff-neuro-page *::before,
.ff-neuro-page *::after {
    box-sizing: border-box;
}

/* TEAM PAGE BANNER */

body.ff-neuro-refresh
.ff-neuro-page .banner.team-hero h1 {
    color: #76513B !important;
    -webkit-text-fill-color: #76513B !important;
}

/* COMMON CONTAINER */

.ff-neuro-page .ff-neuro-container {
    width: calc(100% - 80px);
    max-width: 1240px;
    margin: 0 auto;
}

/* BREADCRUMB */

.ff-neuro-breadcrumb-wrap {
    padding: 26px 0 0;
    background: #FFFFFF;
}

.ff-neuro-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-neuro-breadcrumb li {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ff-body);
    font-size: 13px;
    line-height: 1.6;
}

.ff-neuro-breadcrumb li::before,
.ff-neuro-breadcrumb li::after {
    content: none !important;
}

.ff-neuro-breadcrumb a {
    color: var(--ff-heading);
    text-decoration: none;
}

.ff-neuro-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ff-neuro-separator {
    color: #B6A79B;
}

/* INTRODUCTION */

.ff-neuro-intro {
    padding: 65px 0 85px;
    background: #FFFFFF;
}

.ff-neuro-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(35px, 5vw, 75px);
    align-items: center;
}

.ff-neuro-intro-content {
    min-width: 0;
}

.ff-neuro-intro h2,
.ff-neuro-journey h2 {
    margin: 0 0 27px;
    color: var(--ff-heading);
    font-family: inherit;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: normal;
}

.ff-neuro-intro-content p {
    margin: 0 0 20px;
    color: var(--ff-body);
    font-size: 16px;
    line-height: 1.85;
}

.ff-neuro-intro-content p:last-child {
    margin-bottom: 0;
}

/* INTRO IMAGE */

.ff-neuro-photo {
    position: relative;
    margin: 0;
    padding: 0 0 18px 18px;
}

.ff-neuro-photo::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 65%;
    background: #EDF2EA;
    border-radius: 12px;
}

.ff-neuro-photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    border-radius: 12px;
}

/* MAIN SERVICES SECTION */

.ff-neuro-journey {
    padding: 40px 0 55px;
    background: #F8F6F2;
}

.ff-neuro-journey-header {
    max-width: 780px;
    margin-bottom: 45px;
}

.ff-neuro-journey-header h2 {
    margin-bottom: 0;
}

.ff-neuro-journey-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: clamp(35px, 5vw, 65px);
    align-items: start;
}

/* SERVICE LIST */

.ff-neuro-steps {
    min-width: 0;
    border-top: 1px solid var(--ff-beige);
}

.ff-neuro-step {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 26px;
    padding: 34px 0 37px;
    border-bottom: 1px solid var(--ff-beige);
}

.ff-neuro-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 12px;
    border: 1px solid var(--ff-sand);
    border-radius: 12px;
    background: #FFFFFF;
}

.ff-neuro-step-icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 46px;
    max-height: 46px;
    object-fit: contain;
}

/* NUMBER-BASED FALLBACK FOR SERVICES */

.ff-neuro-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 1px solid var(--ff-sand);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ff-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.ff-neuro-step-content {
    min-width: 0;
}

.ff-neuro-step-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 13px;
}

.ff-neuro-step-label h3 {
    margin: 0;
    color: var(--ff-heading);
    font-size: 23px;
    font-weight: 600;
    line-height: 1.35;
}

.ff-neuro-step-phase {
    color: var(--ff-body);
    font-size: 15px;
    line-height: 1.5;
}

.ff-neuro-step-content p {
    margin: 0;
    color: var(--ff-body);
    font-size: 16px;
    line-height: 1.8;
}

.ff-neuro-step-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-neuro-step-list li {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 0 22px;
    color: var(--ff-body);
    font-size: 16px;
    line-height: 1.75;
    list-style: none;
}

.ff-neuro-step-list li:last-child {
    margin-bottom: 0;
}

.ff-neuro-step-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ff-sage);
}

.ff-neuro-step-list li::after {
    content: none !important;
}

/* CHILD DEVELOPMENT SERVICES SIDEBAR */

.ff-neuro-sidebar {
    position: sticky;
    top: 110px;
    min-width: 0;
    padding: 26px 22px;
    border: 1px solid var(--ff-sand);
    border-radius: 12px;
    background: #FFFFFF;
}

.ff-neuro-sidebar h3 {
    margin: 0 0 22px;
    color: var(--ff-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.ff-neuro-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-neuro-sidebar li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--ff-sand);
    list-style: none;
}

.ff-neuro-sidebar li:last-child {
    border-bottom: 0;
}

.ff-neuro-sidebar li::before,
.ff-neuro-sidebar li::after {
    content: none !important;
}

.ff-neuro-sidebar li a {
    display: block;
    padding: 14px 0;
    color: var(--ff-espresso);
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    background: transparent;
    border: 0;
    transition: color .2s ease;
}

.ff-neuro-sidebar li a:hover {
    color: var(--ff-terracotta);
}

.ff-neuro-sidebar li a[aria-current="page"] {
    color: var(--ff-heading);
    font-weight: 700;
}

/* TABLET */

@media (max-width: 991px) {

    .ff-neuro-intro-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .ff-neuro-photo {
        max-width: 650px;
    }

    .ff-neuro-photo img {
        aspect-ratio: 16 / 10;
    }

    .ff-neuro-journey-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ff-neuro-sidebar {
        position: static;
    }
}

/* MOBILE */

@media (max-width: 680px) {

    .ff-neuro-page .ff-neuro-container {
        width: calc(100% - 32px);
    }

    .ff-neuro-breadcrumb-wrap {
        padding-top: 22px;
    }

    .ff-neuro-intro {
        padding: 45px 0 60px;
    }

    .ff-neuro-intro h2,
    .ff-neuro-journey h2 {
        font-size: 27px;
    }

    .ff-neuro-intro-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    .ff-neuro-photo {
        padding: 0 0 12px 12px;
    }

    .ff-neuro-photo img {
        aspect-ratio: 4 / 3;
    }

    .ff-neuro-journey {
        padding: 60px 0 75px;
    }

    .ff-neuro-journey-header {
        margin-bottom: 30px;
    }

    .ff-neuro-step {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 16px;
        padding: 26px 0;
    }

    .ff-neuro-step-icon,
    .ff-neuro-step-number {
        width: 48px;
        height: 48px;
        padding: 8px;
        border-radius: 9px;
    }

    .ff-neuro-step-number {
        font-size: 18px;
    }

    .ff-neuro-step-icon img {
        max-width: 32px;
        max-height: 32px;
    }

    .ff-neuro-step-label h3 {
        font-size: 20px;
    }

    .ff-neuro-step-content p,
    .ff-neuro-step-list li {
        font-size: 15px;
    }

    .ff-neuro-sidebar {
        padding: 22px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-neuro-sidebar li a {
        transition: none;
    }
}

/* LONG-FORM CHILD PSYCHOTHERAPY CONTENT */

.ff-neuro-step-content p + p {
    margin-top: 16px;
}

.ff-neuro-step-content p + .ff-neuro-step-list {
    margin-top: 18px;
}

.ff-neuro-step-content .ff-neuro-step-list {
    padding-top: 2px;
}

.ff-neuro-step-content .ff-neuro-step-list li {
    line-height: 1.8;
}

.ff-neuro-page .ff-neuro-intro-content {
    max-width: 100%;
}

@media (max-width: 680px) {
    .ff-neuro-step-content p + p {
        margin-top: 14px;
    }
}

/* CHILD DEVELOPMENT - SECTION DESCRIPTIONS */

.ff-neuro-page .ff-neuro-journey-header p {
    margin: 18px 0 0;
    color: #665F59;
    font-size: 16px;
    line-height: 1.85;
}

.ff-neuro-page .ff-neuro-step-content p {
    margin: 0 0 15px;
}

.ff-neuro-page .ff-neuro-step-content p:last-child {
    margin-bottom: 0;
}

/* KEEP PROCESS STEPS COMFORTABLY READABLE */

.ff-neuro-page .ff-neuro-step {
    align-items: start;
}

@media (max-width: 680px) {
    .ff-neuro-page .ff-neuro-journey-header p {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* ==========================================
   CHILD DEVELOPMENT - GROUP PROGRAMS
   ========================================== */

/* INTRODUCTION BULLET SPACING */

.ff-neuro-page .ff-group-intro-list {
    margin-top: 22px;
}

.ff-neuro-page .ff-group-intro-list li {
    margin-bottom: 16px;
}

/* INDIVIDUAL PROGRAMS */

.ff-neuro-page .ff-group-program {
    padding-top: 40px;
    padding-bottom: 42px;
}

.ff-neuro-page .ff-group-program .ff-neuro-step-label {
    margin-bottom: 15px;
}

.ff-neuro-page .ff-group-program .ff-neuro-step-content > p {
    margin-bottom: 20px;
}

.ff-neuro-page .ff-group-program .ff-neuro-step-list {
    margin-top: 18px;
}

/* READ MORE BUTTON */

.ff-neuro-page .ff-group-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 25px;
    padding: 13px 22px;
    border: 1px solid #76513B;
    border-radius: 6px;
    background: #76513B;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.ff-neuro-page .ff-group-read-more:hover,
.ff-neuro-page .ff-group-read-more:focus-visible {
    background: #FFFFFF;
    color: #76513B;
}

.ff-neuro-page .ff-group-read-more span {
    font-size: 17px;
    line-height: 1;
}

/* MOBILE */

@media (max-width: 680px) {

    .ff-neuro-page .ff-group-program {
        padding-top: 30px;
        padding-bottom: 32px;
    }

    .ff-neuro-page .ff-group-read-more {
        padding: 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ff-neuro-page .ff-group-read-more {
        transition: none;
    }
}

/* ==========================================
   CHILD DEVELOPMENT - WORKSHOP DETAIL PAGE
   ========================================== */

/* INTRO QUOTE */

.ff-neuro-page .ff-workshop-quote {
    color: #76513B;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
}

/* WIDE INTRODUCTORY CONTENT */

.ff-neuro-page .ff-workshop-wide {
    max-width: 950px;
}

/* WEEKLY TOPICS */

.ff-neuro-page .ff-workshop-topics {
    padding-top: 75px;
    padding-bottom: 85px;
}

.ff-neuro-page .ff-workshop-topics .ff-neuro-steps {
    margin-top: 28px;
}

.ff-neuro-page .ff-workshop-takeaway {
    margin-top: 16px;
    padding: 13px 18px;
    border-left: 3px solid #859F7D;
    border-radius: 0 6px 6px 0;
    background: #F8F6F2;
}

.ff-neuro-page .ff-workshop-takeaway strong {
    color: #76513B;
    font-weight: 600;
}

/* REGISTRATION */

.ff-neuro-page .ff-workshop-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
}

.ff-neuro-page .ff-workshop-contact-link {
    color: #76513B;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ff-neuro-page .ff-workshop-contact-link:hover {
    color: #C96F56;
    text-decoration: underline;
}

.ff-neuro-page .ff-workshop-back {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid #D6C6B6;
}

.ff-neuro-page .ff-workshop-back a {
    color: #76513B;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.ff-neuro-page .ff-workshop-back a:hover {
    text-decoration: underline;
}

/* MOBILE */

@media (max-width: 680px) {

    .ff-neuro-page .ff-workshop-quote {
        font-size: 18px;
    }

    .ff-neuro-page .ff-workshop-topics {
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .ff-neuro-page .ff-workshop-takeaway {
        padding: 12px 14px;
    }

    .ff-neuro-page .ff-workshop-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


/* ==========================================
   familyFIRST - WORKSHOP REGISTRATION CTA
   ========================================== */

.ff-neuro-page .ff-workshop-cta {
    background: #F8F6F2;
    padding: 85px 0 55px;
}

.ff-neuro-page .ff-workshop-cta-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(45px, 6vw, 100px);
}

/* LEFT CONTENT */

.ff-neuro-page .ff-workshop-eyebrow {
    display: block;
    margin-bottom: 19px;
    color: #859F7D;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ff-neuro-page .ff-workshop-cta-content h2 {
    max-width: 570px;
    margin: 0 0 22px;
    color: #76513B;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1px;
}

.ff-neuro-page .ff-workshop-cta-content h2 span {
    display: block;
}

.ff-neuro-page .ff-workshop-cta-content p {
    max-width: 480px;
    margin: 0;
    color: #665F59;
    font-size: 17px;
    line-height: 1.85;
}

/* RIGHT CONTACT PANEL */

.ff-neuro-page .ff-workshop-cta-panel {
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #EDE8DF;
    border-radius: 14px;
}

/* CONTACT ROWS */

.ff-neuro-page .ff-workshop-cta-contact {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid #EDE8DF;
    text-decoration: none;
}

.ff-neuro-page .ff-workshop-cta-contact:first-child {
    padding-top: 0;
}

.ff-neuro-page .ff-workshop-cta-contact:nth-child(2) {
    padding-bottom: 22px;
}

/* ICON */

.ff-neuro-page .ff-workshop-cta-icon {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #F4F0EB;
    border-radius: 10px;
    color: #76513B;
    font-size: 23px;
}

/* CONTACT LABELS */

.ff-neuro-page .ff-workshop-cta-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.ff-neuro-page .ff-workshop-cta-details small {
    color: #81766D;
    font-size: 12px;
    font-weight: 500;
}

.ff-neuro-page .ff-workshop-cta-details strong {
    color: #2D1F17;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ff-neuro-page .ff-workshop-cta-arrow {
    color: #76513B;
    font-size: 19px;
    transition: transform .2s ease;
}

.ff-neuro-page .ff-workshop-cta-contact:hover
.ff-workshop-cta-arrow {
    transform: translate(3px, -3px);
}

/* WHATSAPP BUTTON */

.ff-neuro-page .ff-workshop-cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    min-height: 54px;
    margin-top: 25px;
    padding: 15px 20px;
    border: 1px solid #76513B;
    border-radius: 7px;
    background: #76513B;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.ff-neuro-page .ff-workshop-cta-button:hover {
    background: #FFFFFF;
    color: #76513B;
}

.ff-neuro-page .ff-workshop-cta-button span {
    font-size: 18px;
}

/* BACK LINK */

.ff-neuro-page .ff-workshop-cta-footer {
    margin-top: 65px;
    padding-top: 25px;
    border-top: 1px solid #D6C6B6;
}

.ff-neuro-page .ff-workshop-cta-footer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #76513B;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.ff-neuro-page .ff-workshop-cta-footer a:hover {
    color: #C96F56;
}

/* TABLET */

@media (max-width: 991px) {

    .ff-neuro-page .ff-workshop-cta-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .ff-neuro-page .ff-workshop-cta-content h2 span {
        display: inline;
    }
}

/* MOBILE */

@media (max-width: 680px) {

    .ff-neuro-page .ff-workshop-cta {
        padding: 55px 0 40px;
    }

    .ff-neuro-page .ff-workshop-cta-content h2 {
        font-size: 34px;
    }

    .ff-neuro-page .ff-workshop-cta-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    .ff-neuro-page .ff-workshop-cta-panel {
        padding: 22px;
    }

    .ff-neuro-page .ff-workshop-cta-contact {
        gap: 12px;
    }

    .ff-neuro-page .ff-workshop-cta-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .ff-neuro-page .ff-workshop-cta-details strong {
        font-size: 13px;
    }

    .ff-neuro-page .ff-workshop-cta-footer {
        margin-top: 45px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ff-neuro-page .ff-workshop-cta-button,
    .ff-neuro-page .ff-workshop-cta-arrow {
        transition: none;
    }
}


/* ==========================================
   CHILD PSYCHOTHERAPY - COMPACT SUPPORT LIST
   ========================================== */

.ff-neuro-page .ff-compact-support {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    border-top: 0;
}

.ff-neuro-page .ff-compact-support .ff-neuro-step {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 65px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ff-beige);
}

/* Hide large numbered boxes */

.ff-neuro-page .ff-compact-support .ff-neuro-step-number {
    display: none;
}

/* Small sage dot instead */

.ff-neuro-page .ff-compact-support .ff-neuro-step::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ff-sage);
}

.ff-neuro-page .ff-compact-support .ff-neuro-step-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ff-body);
}

@media (max-width: 680px) {
    .ff-neuro-page .ff-compact-support {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ff-neuro-page .ff-compact-support .ff-neuro-step {
        min-height: 0;
        padding: 14px 0;
    }
}


/* Assessment items without numbered boxes */

.ff-neuro-page .ff-step-no-number {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

/* ==========================================
   INTERDISCIPLINARY - COMMON CONCERNS
   ========================================== */

.ff-neuro-page .ff-interdisciplinary-concerns-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.ff-neuro-page .ff-interdisciplinary-concerns-list li {
    position: relative;
    margin: 0;
    padding: 18px 8px 18px 24px;
    border-bottom: 1px solid var(--ff-beige);
    list-style: none;
    color: var(--ff-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.ff-neuro-page .ff-interdisciplinary-concerns-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ff-sage);
}

.ff-neuro-page .ff-interdisciplinary-concerns-list li::after {
    content: none !important;
}

@media (max-width: 680px) {
    .ff-neuro-page .ff-interdisciplinary-concerns-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .ff-neuro-page .ff-interdisciplinary-concerns-list li {
        padding: 15px 8px 15px 24px;
        font-size: 15px;
    }

    .ff-neuro-page .ff-interdisciplinary-concerns-list li::before {
        top: 25px;
    }
}

/* GROUP PROGRAMS - TWO CARDS IN ONE ROW */

.ff-neuro-page .ff-group-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    border-top: 0;
}

.ff-neuro-page .ff-group-cards-grid .ff-group-program {
    display: block;
    padding: 0 0 20px;
    border-bottom: 0;
}

.ff-neuro-page .ff-group-cards-grid .ff-neuro-step-number {
    display: none;
}

.ff-neuro-page .ff-group-cards-grid .ff-neuro-step-content {
    width: 100%;
}

.ff-neuro-page .ff-group-cards-grid .ff-neuro-step-label h3 {
    font-size: 18px;
    line-height: 1.45;
}

/* Keep both images the same size */

.ff-neuro-page .ff-group-cards-grid figure {
    margin: 16px 0 20px !important;
}

.ff-neuro-page .ff-group-cards-grid figure img {
    width: 100%;
    height: 190px !important;
    object-fit: cover;
    border-radius: 8px;
}

/* Mobile: stack neatly */

@media (max-width: 680px) {
    .ff-neuro-page .ff-group-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ff-neuro-page .ff-group-cards-grid figure img {
        height: auto !important;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }
}

/* MOBILE SIDEBAR - AFTER JAVASCRIPT REPOSITIONING */

@media (max-width: 991px) {
    .ff-neuro-page > .ff-neuro-sidebar {
        position: static;
        width: calc(100% - 32px);
        max-width: 600px;
        margin: 30px auto 55px;
    }
}

/* ===================================================
   CHILD DEVELOPMENT LANDING PAGE (child-development.php)
   Scoped to .ff-child-page; shared with service pages.
   =================================================== */


.home-hero-clean .home-hero-shade,
.home-hero-clean .home-hero-shade h1,
.home-hero-clean .home-hero-shade p {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    animation-delay: 0s !important;
    transition: none !important;
}
    
      /* Child Development only. Does not change the site menu or footer. */
      .ff-child-page{--ff-ink:#30241d;--ff-muted:#665f59;--ff-line:#e9e4df;--ff-soft:#f8f6f3;color:var(--ff-ink)}
      .ff-child-page *{box-sizing:border-box}
      .ff-child-page .ff-child-intro{padding:clamp(64px,8vw,112px) 0 34px;background:#fff}
      .ff-child-page .ff-child-intro-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.03fr);gap:clamp(32px,6vw,92px);align-items:center}
      .ff-child-page .ff-child-kicker{display:block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#8c7364;margin-bottom:21px}
      /* .ff-child-page .ff-child-intro h2{font-size:clamp(35px,4.5vw,66px);line-height:1.1;letter-spacing:-.035em;font-weight:600;margin:0 0 26px;color:var(--ff-ink)} */
      .ff-child-page .ff-child-intro-photo{position:relative;min-height:310px;aspect-ratio:1.31;overflow:hidden;border-radius:12px;background:var(--ff-soft)}
      .ff-child-page .ff-child-intro-photo img{width:100%;height:100%;position:absolute;inset:0;display:block;object-fit:cover}
      .ff-child-page .ff-child-intro-copy p{font-size:clamp(15px,1.45vw,18px);line-height:1.75;color:var(--ff-muted);margin:0;max-width:500px}
      .ff-child-page .ff-child-services{padding:clamp(48px,6.5vw,90px) 0 clamp(76px,9vw,132px);background:#fff}
      .ff-child-page .ff-child-services-header{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:30px;padding-bottom:22px;border-bottom:1px solid var(--ff-line)}
      .ff-child-page .ff-child-services-header h2{font-size:clamp(26px,3vw,42px);line-height:1.17;letter-spacing:-.025em;margin:0;color:#76513b !important;}
      .ff-child-page .ff-child-services-header span{font-size:13px;color:var(--ff-muted);white-space:nowrap}
      .ff-child-page .ff-child-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;margin:0;padding:0}
      .ff-child-page .ff-child-grid li{margin:0;min-width:0;padding:0;list-style:none}
      .ff-child-page .ff-child-grid li::before,.ff-child-page .ff-child-grid li::after{content:none!important}
      .ff-child-page .ff-child-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:210px;padding:26px 27px 23px;text-decoration:none!important;border:1px solid var(--ff-line);background:var(--ff-soft);border-radius:9px;transition:background .2s ease,border-color .2s ease,transform .2s ease;overflow:hidden}
      .ff-child-page .ff-child-card:hover,.ff-child-page .ff-child-card:focus-visible{background:#eee8e2;border-color:#d7c9bd;transform:translateY(-3px)}
      .ff-child-page .ff-child-num{font-size:12px;color:#9a877a;letter-spacing:.07em;font-weight:600;line-height:1}
      .ff-child-page .ff-child-card h3{font-size:clamp(18px,1.65vw,24px);font-weight:600;line-height:1.34;letter-spacing:-.015em;color:var(--ff-ink);margin:28px 35px 0 0;max-width:320px}
      .ff-child-page .ff-child-card-arrow{position:absolute;right:23px;bottom:22px;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;border:1px solid #b8a89c;transition:background .2s ease,transform .2s ease}
      .ff-child-page .ff-child-card-arrow:after{content:'';display:block;width:8px;height:8px;border-top:1.8px solid var(--ff-ink);border-right:1.8px solid var(--ff-ink);transform:rotate(45deg);margin-left:-3px}
      .ff-child-page .ff-child-card:hover .ff-child-card-arrow{background:white;transform:translateX(3px)}
      .ff-child-page .ff-child-wide-photo{height:clamp(230px,31vw,430px);overflow:hidden;position:relative;background:#e6dfd8;margin:0}
      .ff-child-page .ff-child-wide-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
      @media(max-width:991px){.ff-child-page .ff-child-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ff-child-page .ff-child-intro-layout{gap:30px}.ff-child-page .ff-child-card{min-height:190px}}
      @media(max-width:680px){.ff-child-page .ff-child-intro{padding:48px 0 18px}.ff-child-page .ff-child-intro-layout{grid-template-columns:1fr}.ff-child-page .ff-child-intro-photo{aspect-ratio:1.48;min-height:230px;order:-1}.ff-child-page .ff-child-services{padding:42px 0 70px}.ff-child-page .ff-child-grid{grid-template-columns:1fr;gap:11px}.ff-child-page .ff-child-card{min-height:132px;padding:20px 21px}.ff-child-page .ff-child-card h3{font-size:19px;margin:18px 46px 0 0}.ff-child-page .ff-child-card-arrow{right:20px;bottom:18px}.ff-child-page .ff-child-services-header{align-items:flex-start}.ff-child-page .ff-child-services-header span{display:none}.ff-child-page .ff-child-wide-photo{height:240px}}
      @media(prefers-reduced-motion:reduce){.ff-child-page .ff-child-card,.ff-child-page .ff-child-card-arrow{transition:none}}

      
/* CHILD DEVELOPMENT - EQUAL SIZE IMAGE CARDS */

.ff-child-page .ff-child-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: stretch;
}

.ff-child-page .ff-child-grid li {
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    height: 100%;
}

.ff-child-page .ff-child-grid li::before,
.ff-child-page .ff-child-grid li::after {
    content: none !important;
}

/* Equal card height */

.ff-child-page .ff-child-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ff-line);
    border-radius: 12px;
    text-decoration: none !important;
    transition: transform .3s ease, box-shadow .3s ease;
}

.ff-child-page .ff-child-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

/* All images same dimensions */

.ff-child-page .ff-child-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f6f3;
}

.ff-child-page .ff-child-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ff-child-page .ff-child-card:hover img {
    transform: scale(1.04);
}

/* Equal content section height */

.ff-child-page .ff-child-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    min-height: 125px;
    padding: 22px;
    flex: 1;
}

/* Heading */

.ff-child-page .ff-child-card h3 {
    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--ff-ink);
    margin: 0;
    max-width: none;
    letter-spacing: 0;
}

/* Small arrow */

.ff-child-page .ff-child-card-arrow {
    position: static;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid #c9bdb3;
    border-radius: 50%;
    background: transparent;
}

.ff-child-page .ff-child-card-arrow::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--ff-ink);
    border-right: 2px solid var(--ff-ink);
    transform: rotate(45deg);
    margin-left: -3px;
}

.ff-child-page .ff-child-card:hover .ff-child-card-arrow {
    background: #f8f6f3;
    transform: translateX(3px);
}

/* Tablet */

@media (max-width: 991px) {
    .ff-child-page .ff-child-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .ff-child-page .ff-child-card-content {
        min-height: 125px;
    }
}

/* Mobile */

@media (max-width: 680px) {
    .ff-child-page .ff-child-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ff-child-page .ff-child-card-content {
        min-height: 110px;
        padding: 20px;
    }

    .ff-child-page .ff-child-card h3 {
        font-size: 18px;
    }
}
/* Child Development Banner Text Color */

body.child-development-refresh .ff-child-page
.banner.team-hero .banner_cont .container h1 {
    color: #76513b !important;
    -webkit-text-fill-color: #76513b !important;
}

/* =========================================
   familyFIRST - CHILD DEVELOPMENT COLOURS
   ========================================= */

.ff-child-page {
    --ff-ink: #2D1F17;
    --ff-muted: #665F59;
    --ff-sage: #859F7D;
    --ff-terracotta: #C96F56;
    --ff-blue: #7CA5C7;
    --ff-sand: #EDE8DF;
    --ff-beige: #D6C6B6;
    --ff-pink: #E4C7C3;
    --ff-lavender: #E8DFF7;
    --ff-line: #D6C6B6;
}

/* INTRO SECTION */

.ff-child-page .ff-child-intro {
    background: var(--ff-sand);
}

.ff-child-page .ff-child-intro h2,
.ff-child-page .home-intro-clean h2 {
    color: var(--ff-ink);
}

/* SERVICES SECTION */

.ff-child-page .ff-child-services {
    background: #FFFFFF;
}

.ff-child-page .ff-child-services-header {
    border-bottom: 2px solid var(--ff-sage);
}

.ff-child-page .ff-child-services-header h2 {
    color: var(--ff-ink);
}

/* CARD COLOURS */

.ff-child-page .ff-child-card {
    background: #FFFFFF;
    border: 1px solid #EDE8DF;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease,
        background .3s ease;
}

/* Sage Green */
.ff-child-page .ff-child-grid li:nth-child(4n+1)
.ff-child-card-content {
    background: #EDF2EA;
}

/* Dusty Blue */
.ff-child-page .ff-child-grid li:nth-child(4n+2)
.ff-child-card-content {
    background: #EAF1F7;
}

/* Soft Lavender */
.ff-child-page .ff-child-grid li:nth-child(4n+3)
.ff-child-card-content {
    background: var(--ff-lavender);
}

/* Dusty Pink */
.ff-child-page .ff-child-grid li:nth-child(4n+4)
.ff-child-card-content {
    background: #F5E8E6;
}

/* CARD TEXT */

.ff-child-page .ff-child-card h3 {
    color: var(--ff-ink);
}

/* CARD ARROW */

.ff-child-page .ff-child-card-arrow {
    border-color: var(--ff-terracotta);
}

.ff-child-page .ff-child-card-arrow::after {
    border-top-color: var(--ff-terracotta);
    border-right-color: var(--ff-terracotta);
}

/* HOVER EFFECT */

.ff-child-page .ff-child-card:hover {
    transform: translateY(-5px);
    border-color: var(--ff-terracotta);
    background: #FFFFFF;
    box-shadow: 0 14px 32px rgba(45, 31, 23, .10);
}

.ff-child-page .ff-child-card:hover
.ff-child-card-arrow {
    background: var(--ff-terracotta);
}

.ff-child-page .ff-child-card:hover
.ff-child-card-arrow::after {
    border-top-color: #FFFFFF;
    border-right-color: #FFFFFF;
}

/* ACCESSIBILITY */

.ff-child-page .ff-child-card:focus-visible {
    outline: 3px solid var(--ff-sage);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .ff-child-page .ff-child-card {
        transition: none;
    }
}
/* =========================================
   FAMILY FIRST - GLOBAL BANNER FIX
   ========================================= */

body .banner {
    position: relative !important;
    width: 100%;
     height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Make the image cover the entire banner */
body .banner > img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

/* Keep the heading above the image */
body .banner .banner_cont {
    position: absolute !important;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Tablet */
@media (max-width: 991px) {
    body .banner {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body .banner {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    body .banner > img {
        object-position: 65% center !important;
    }
}

.banner.team-hero .banner_cont {
    background: none !important;
    backdrop-filter: none !important;
    filter: none !important;
}

.banner.team-hero img {
    filter: none !important;
}

/* =========================================
   CHILD DEVELOPMENT SERVICE BANNERS
   SHARED TABLET AND MOBILE FIX
   ========================================= */

/* TABLET */
@media (min-width: 768px) and (max-width: 1199px) {

    body.ff-neuro-refresh .banner.team-hero.ff-service-hero h1 {
        font-size: 36px !important;
        line-height: 1.2 !important;
        max-width: 65%;
    }
}

/* MOBILE */
@media (max-width: 767px) {

    body.ff-neuro-refresh .banner.team-hero.ff-service-hero {
        position: relative !important;
        display: block !important;
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
        overflow: hidden !important;
    }

    /* Keep heading over image */
    body.ff-neuro-refresh .ff-service-hero .banner_cont {
        position: absolute !important;
        inset: 0 !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Smaller heading */
    body.ff-neuro-refresh .ff-service-hero .banner_cont h1 {
        font-size: 25px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
        color: #76513B !important;
        -webkit-text-fill-color: #76513B !important;
    }

    /* Keep image behind heading */
    body.ff-neuro-refresh .ff-service-hero > img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* SMALL MOBILE - 375px and below */
@media (max-width: 375px) {

    body.ff-neuro-refresh .ff-service-hero .banner_cont h1 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }
}

/* =========================================
   SHARED CHILD DEVELOPMENT SERVICE BANNER
   PICTURE SUPPORT FOR ALL 9 PAGES
   ========================================= */

/* Keep picture behind the heading */

body.ff-neuro-refresh .ff-service-hero > picture {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    overflow: hidden !important;
}

/* Make image fill entire banner */

body.ff-neuro-refresh .ff-service-hero > picture > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    filter: none !important;
}

/* Keep heading visible over image */

body.ff-neuro-refresh .ff-service-hero .banner_cont {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    backdrop-filter: none !important;
}

/* MOBILE */

@media (max-width: 600px) {

    body.ff-neuro-refresh .banner.team-hero.ff-service-hero {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    body.ff-neuro-refresh .ff-service-hero > picture > img {
        object-position: center 55% !important;
    }

    body.ff-neuro-refresh .ff-service-hero .banner_cont h1 {
        font-size: 25px !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
        color: #76513B !important;
        -webkit-text-fill-color: #76513B !important;
    }
}

/* SMALL MOBILE */

@media (max-width: 375px) {

    body.ff-neuro-refresh .ff-service-hero .banner_cont h1 {
        font-size: 22px !important;
    }
}


/* =========================================
   CHILD DEVELOPMENT SERVICE BANNERS
   SHARED LEFT-SIDE SOFT EFFECT
   ========================================= */

body.ff-neuro-refresh
.ff-neuro-page .banner.team-hero {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
}

/* Keep banner images sharp */

body.ff-neuro-refresh
.ff-neuro-page .banner.team-hero > img,

body.ff-neuro-refresh
.ff-neuro-page .banner.team-hero > picture > img {
    filter: none !important;
    backdrop-filter: none !important;
}

/* Soft cream overlay on left only */

body.ff-neuro-refresh
.ff-neuro-page .banner.team-hero .banner_cont {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;

      background: linear-gradient(
        90deg,
        rgba(241, 236, 227, 0.58) 0%,
        rgba(241, 236, 227, 0.35) 30%,
        rgba(241, 236, 227, 0.12) 55%,
        transparent 75%
    ) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

/* No additional pseudo-element overlays */

body.ff-neuro-refresh
.ff-neuro-page .banner.team-hero .banner_cont::before,

body.ff-neuro-refresh
.ff-neuro-page .banner.team-hero .banner_cont::after {
    content: none !important;
}

/* Tablet */

@media (max-width: 991px) {

    body.ff-neuro-refresh
    .ff-neuro-page .banner.team-hero .banner_cont {
        background: linear-gradient(
             90deg,
            rgba(241, 236, 227, 0.48) 0%,
            rgba(241, 236, 227, 0.25) 50%,
            transparent 90%
        ) !important;
    }
}

/* Mobile */

@media (max-width: 600px) {

    body.ff-neuro-refresh
    .ff-neuro-page .banner.team-hero .banner_cont {
         background: linear-gradient(
            90deg,
            rgba(241, 236, 227, 0.40) 0%,
            rgba(241, 236, 227, 0.18) 60%,
            transparent 100%
        ) !important;
    }
}

/* Service photography retains the complete scene, without hover cropping. */
.ff-child-page .ff-child-card-image {
    display: grid;
    place-items: center;
    background: var(--tile, #F6F3EE);
}
.ff-child-page .ff-child-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.ff-child-page .ff-child-card:hover img { transform: none; }
body.child-development-refresh .ff-child-page .banner.team-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
}
body.child-development-refresh .ff-child-page .banner.team-hero > img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    contain: none !important;
    grid-area: 1 / 1;
}
body.child-development-refresh .ff-child-page .banner.team-hero .banner_cont {
    grid-area: 1 / 1;
    z-index: 1;
}
.ff-therapy-session { padding-block: var(--space-l); }
.ff-therapy-session .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ff-therapy-session figure { margin: 0; }
.ff-therapy-session img { width: 100%; height: auto; display: block; border-radius: var(--photo-radius); }
.ff-therapy-session figcaption { margin-top: 12px; font-size: .8rem; line-height: 1.6; color: var(--text-soft); }
.ff-therapy-session h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 400; line-height: 1.25; margin-bottom: 20px; }
.ff-therapy-session p { color: var(--text-soft); line-height: 1.8; }
@media (max-width: 767px) {
    .ff-therapy-session .container { grid-template-columns: 1fr; }
    body.child-development-refresh .ff-child-page .banner.team-hero .banner_cont { position: relative !important; grid-area: auto; padding-block: 24px !important; }
}

/* Keep the therapist link icon independent of the illustration size. */
.ff-therapy-session a { display: inline-flex; align-items: center; gap: 10px; }
.ff-therapy-session a svg { width: 24px; height: 24px; flex: 0 0 24px; }

/* The portrait assessment photo fills the same card frame as its neighbours (faces sit mid-image). */
.ff-child-page .ff-child-card-image--portrait { position: relative; height: auto; aspect-ratio: 3 / 2 !important; min-height: 0; }
.ff-child-page .ff-child-card-image--portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* Child Development banner: separate desktop and mobile artwork (via <picture>). */
section:has(> .banner > picture) { padding: var(--gap) var(--gap) 0; }
body.child-development-refresh .ff-child-page .banner.team-hero > picture { display: contents; }
body.child-development-refresh .ff-child-page .banner.team-hero > picture > img {
    position: relative !important;
    inset: auto !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    contain: none !important;
    grid-area: 1 / 1;
    border-radius: var(--tile-radius);
}
@media (max-width: 767px) {
    body.child-development-refresh .ff-child-page .banner.team-hero > picture > img { aspect-ratio: 4 / 3 !important; }
}

/* Every service card uses the same 3:2 frame as its photo, so no card shows beige bars. */
.ff-child-page .ff-child-card-image { aspect-ratio: 3 / 2 !important; background: none; }
.ff-child-page .ff-child-card-image img { object-fit: cover; }
