html {
    scroll-behavior: smooth;
}

.page-content {
    overflow: clip;
}

.bailey-hero {
    position: relative;
    overflow: hidden;
    padding: 95px 0;
    background-color: var(--off-white);
}

.bailey-hero-container {
    position: relative;
    z-index: 2;
    width: min(90%, 1100px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.bailey-hero-content h1 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1;
}

.bailey-subtitle {
    max-width: 650px;
    margin-bottom: 18px;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
}

.bailey-intro {
    max-width: 680px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 13px 25px;
    border-radius: 50px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    background-color: var(--primary-dark);
}

.bailey-quick-card {
    padding: 35px;
    border: 1px solid rgba(6, 68, 131, 0.06);
    border-radius: 22px;
    background-color: var(--white);
    box-shadow: 0 15px 45px rgba(6, 68, 131, 0.1);
}

.quick-card-label {
    display: block;
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.quick-card-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(6, 68, 131, 0.09);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.quick-card-item strong {
    color: var(--primary);
    font-size: 2rem;
}

.quick-card-item span {
    color: var(--text-light);
    font-size: 0.82rem;
}

.quick-card-footer {
    padding-top: 22px;
    color: var(--orange);
    font-size: 0.82rem;
    font-weight: 700;
}

.bailey-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.decoration-blue {
    width: 250px;
    height: 250px;
    top: -100px;
    right: -60px;
    background-color: var(--blue);
}

.decoration-orange {
    width: 130px;
    height: 130px;
    bottom: -55px;
    left: 10%;
    background-color: var(--orange);
}

.decoration-violet {
    width: 80px;
    height: 80px;
    right: 35%;
    top: 18%;
    background-color: var(--violet);
}

.bailey-container {
    width: min(90%, 1100px);
    margin: 0 auto;
}

.what-is-bailey {
    padding: 95px 0;
    background-color: var(--white);
}

.two-column-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 90px;
}

.section-heading h2 {
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.25;
}

.section-heading>p {
    margin-top: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.section-text p {
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.85;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-text strong {
    color: var(--primary);
}

.development-section {
    padding: 95px 0;
    background-color: var(--off-white);
}

.centered-heading {
    max-width: 680px;
    margin: 0 auto 50px;
    text-align: center;
}

.development-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.development-card {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 28px;
    border: 1px solid rgba(6, 68, 131, 0.05);
    border-radius: 18px;
    background-color: var(--white);
    box-shadow: 0 8px 25px rgba(6, 68, 131, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.development-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(6, 68, 131, 0.09);
}

.development-card:nth-child(1),
.development-card:nth-child(2),
.development-card:nth-child(3) {
    grid-column: span 2;
}

.development-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.development-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.development-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -45px;
    bottom: -45px;
    border-radius: 50%;
    opacity: 0.08;
}

.cognitive-card::after {
    background-color: var(--blue);
}

.receptive-card::after {
    background-color: var(--orange);
}

.expressive-card::after {
    background-color: var(--violet);
}

.fine-card::after {
    background-color: var(--green);
}

.gross-card::after {
    background-color: var(--red);
}

.development-number {
    display: block;
    margin-bottom: 35px;
    color: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 700;
}

.cognitive-card .development-number {
    color: var(--blue);
}

.receptive-card .development-number {
    color: var(--orange);
}

.expressive-card .development-number {
    color: var(--violet);
}

.fine-card .development-number {
    color: var(--green);
}

.gross-card .development-number {
    color: var(--red);
}

.development-card h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1rem;
}

.development-card p {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.7;
}

.why-section {
    padding: 95px 0;
    background-color: var(--white);
}

.why-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.why-content h2 {
    margin-bottom: 22px;
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.25;
}

.why-content p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

.why-content p:last-child {
    margin-bottom: 0;
}

.why-highlight {
    padding: 35px;
    border-left: 4px solid var(--orange);
    border-radius: 0 18px 18px 0;
    background-color: var(--off-white);
}

.why-highlight span {
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
}

.why-highlight p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.75;
}

.assessment-room {
    padding: 95px 0;
    background-color: var(--off-white);
}

.room-heading {
    margin-bottom: 45px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: end;
}

.room-heading h2 {
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.25;
}

.room-heading>p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.8;
}

.room-gallery {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr;
    grid-template-rows: repeat(2, 220px);
    gap: 13px;
}

.room-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.room-gallery img:first-child {
    grid-row: 1 / 3;
}

.room-gallery img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 68, 131, 0.12);
}

.assessment-process {
    padding: 95px 0;
    background-color: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-item {
    padding: 25px;
}

.process-item>span {
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 139, 224, 0.1);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
}

.process-item:nth-child(2)>span {
    background-color: rgba(254, 114, 1, 0.1);
    color: var(--orange);
}

.process-item:nth-child(3)>span {
    background-color: rgba(202, 108, 215, 0.1);
    color: var(--violet);
}

.process-item:nth-child(4)>span {
    background-color: rgba(23, 198, 22, 0.1);
    color: var(--green);
}

.process-item h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.95rem;
}

.process-item p {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.7;
}

.greek-standardization {
    padding: 85px 0;
    background-color: var(--off-white);
}

.standardization-card {
    padding: 50px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    background-color: var(--primary);
    box-shadow: 0 15px 40px rgba(6, 68, 131, 0.12);
}

.standardization-card .section-label {
    color: var(--primary-light);
}

.standardization-main h2 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.3;
}

.standardization-main p {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.8;
}

.standardization-main p:last-child {
    margin-bottom: 0;
}

.standardization-stats {
    display: grid;
    grid-template-columns: 1fr;
}

.standardization-stats div {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.standardization-stats div:last-child {
    border-bottom: 0;
}

.standardization-stats strong {
    color: var(--white);
    font-size: 1.7rem;
}

.standardization-stats span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
}

.reliability-section {
    padding: 90px 0;
    background-color: var(--white);
}

.reliability-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.reliability-wrapper h2 {
    color: var(--primary);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.3;
}

.reliability-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reliability-item {
    padding: 15px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 13px;
    background-color: var(--off-white);
}

.reliability-item span {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--green);
}

.reliability-item:nth-child(2) span {
    background-color: var(--blue);
}

.reliability-item:nth-child(3) span {
    background-color: var(--orange);
}

.reliability-item:nth-child(4) span {
    background-color: var(--violet);
}

.reliability-item p {
    color: var(--text);
    font-size: 0.83rem;
    font-weight: 600;
}

.doctor-training {
    padding: 90px 0;
    background-color: var(--off-white);
}

.training-card {
    position: relative;
    overflow: hidden;
    max-width: 850px;
    margin: 0 auto;
    padding: 45px;
    border: 1px solid rgba(6, 68, 131, 0.08);
    border-radius: 20px;
    background-color: var(--white);
    box-shadow: 0 12px 35px rgba(6, 68, 131, 0.07);
}

.training-accent {
    position: absolute;
    width: 130px;
    height: 130px;
    right: -55px;
    top: -55px;
    border-radius: 50%;
    background-color: var(--violet);
    opacity: 0.07;
}

.training-content {
    position: relative;
    z-index: 1;
}

.training-content h2 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.3;
}

.training-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.8;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.source-link span {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.source-link:hover span {
    transform: translateX(4px);
}

.bailey-faq {
    padding: 95px 0;
    background-color: var(--white);
}

.faq-heading {
    max-width: 700px;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 900px;
}

.faq-item {
    border-bottom: 1px solid rgba(6, 68, 131, 0.12);
}

.faq-item:first-child {
    border-top: 1px solid rgba(6, 68, 131, 0.12);
}

.faq-item summary {
    position: relative;
    padding: 23px 45px 23px 0;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    font-size: 1.4rem;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 50px 23px 0;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.84rem;
    line-height: 1.8;
}

.bailey-cta {
    padding: 70px 0;
    background-color: var(--off-white);
}

.bailey-cta-container {
    width: min(90%, 1100px);
    margin: 0 auto;
    padding: 45px 50px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background-color: var(--primary);
}

.bailey-cta .section-label {
    color: rgba(255, 255, 255, 0.65);
}

.bailey-cta h2 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.bailey-cta p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.75;
}

.cta-button {
    flex-shrink: 0;
    padding: 13px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

@media screen and (max-width: 900px) {
    .bailey-hero {
        padding: 75px 0;
    }

    .bailey-hero-container,
    .two-column-section,
    .why-wrapper,
    .room-heading,
    .standardization-card,
    .reliability-wrapper {
        grid-template-columns: 1fr;
    }

    .bailey-hero-container {
        gap: 50px;
    }

    .bailey-quick-card {
        max-width: 500px;
    }

    .two-column-section,
    .why-wrapper,
    .room-heading,
    .reliability-wrapper {
        gap: 35px;
    }

    .development-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .development-card:nth-child(1),
    .development-card:nth-child(2),
    .development-card:nth-child(3),
    .development-card:nth-child(4),
    .development-card:nth-child(5) {
        grid-column: auto;
    }

    .development-card:last-child {
        grid-column: 1 / 3;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .standardization-card {
        gap: 35px;
    }

    .bailey-cta-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 600px) {
    .bailey-hero {
        padding: 60px 0;
    }

    .bailey-container,
    .bailey-hero-container {
        width: 88%;
    }

    .bailey-hero-content h1 {
        font-size: 2.7rem;
    }

    .bailey-subtitle {
        font-size: 1rem;
    }

    .bailey-quick-card {
        padding: 27px 24px;
    }

    .quick-card-item strong {
        font-size: 1.7rem;
    }

    .what-is-bailey,
    .development-section,
    .why-section,
    .assessment-room,
    .assessment-process,
    .reliability-section,
    .doctor-training,
    .bailey-faq {
        padding: 65px 0;
    }

    .centered-heading {
        margin-bottom: 38px;
        text-align: left;
    }

    .development-grid {
        grid-template-columns: 1fr;
    }

    .development-card:nth-child(1),
    .development-card:nth-child(2),
    .development-card:nth-child(3),
    .development-card:nth-child(4),
    .development-card:nth-child(5),
    .development-card:last-child {
        grid-column: auto;
    }

    .development-card {
        min-height: auto;
        padding: 24px 22px;
    }

    .development-number {
        margin-bottom: 25px;
    }

    .why-highlight {
        padding: 27px 24px;
    }

    .room-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 240px);
        gap: 9px;
    }

    .room-gallery img:first-child {
        grid-row: auto;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .process-item {
        padding: 18px 0;
    }

    .greek-standardization {
        padding: 65px 0;
    }

    .standardization-card {
        padding: 32px 25px;
        gap: 30px;
    }

    .training-card {
        padding: 30px 24px;
    }

    .faq-item summary {
        padding: 21px 40px 21px 0;
        line-height: 1.6;
    }

    .faq-answer {
        padding-right: 20px;
    }

    .bailey-cta {
        padding: 55px 0;
    }

    .bailey-cta-container {
        width: 88%;
        padding: 35px 25px;
        gap: 30px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .decoration-violet {
        display: none;
    }
}

.primary-button,
.cta-button,
.source-link span,
.development-card,
.room-gallery img {
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.3s ease,
        color 0.3s ease;
}

.development-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(6, 68, 131, 0.1);
}

.room-gallery img:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 35px rgba(6, 68, 131, 0.13);
}

.primary-button:hover,
.cta-button:hover {
    transform: translateY(-3px);
}

.bailey-hero-content {
    animation: baileyFadeUp 0.75s ease both;
}

.bailey-quick-card {
    animation: baileyFadeUp 0.75s ease 0.12s both;
}

@keyframes baileyFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item summary {
    transition:
        color 0.25s ease,
        padding-left 0.3s ease;
}

.faq-item summary:hover {
    color: var(--blue);
    padding-left: 8px;
}

.faq-item summary::after {
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.process-item {
    border-radius: 18px;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.35s ease;
}

.process-item:hover {
    transform: translateY(-4px);
    background-color: var(--off-white);
}

.process-item>span {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-item:hover>span {
    transform: scale(1.08);
}