/**
 * Homepage Gutenberg — frontend fallbacks when blocks omit legacy classes.
 */

.banner-stats-block .ap-hero-stats > ul,
.banner-stats-block .ap-hero-stats ul.banner-stats-block__list,
.banner-stats-block .ap-hero-stats .wp-block-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.banner-stats-block .ap-hero-stats > ul > li,
.banner-stats-block .ap-hero-stats ul.banner-stats-block__list > li,
.banner-stats-block .ap-hero-stats .wp-block-list > li {
    min-width: 0;
    padding: 0 24px;
    text-align: center;
    border-right: 1px solid rgb(255 255 255 / 12%);
    color: var(--e-global-color-white);
}

.banner-stats-block .ap-hero-stats .banner-stats-block__icon {
    display: block;
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 1;
    color: #d4a373;
}

.banner-stats-block .ap-hero-stats > ul > li:first-child,
.banner-stats-block .ap-hero-stats ul.banner-stats-block__list > li:first-child {
    padding-left: 0;
}

.banner-stats-block .ap-hero-stats > ul > li:last-child,
.banner-stats-block .ap-hero-stats ul.banner-stats-block__list > li:last-child {
    padding-right: 0;
    border-right: none;
}

.banner-stats-block .ap-hero-stats .value {
    margin-bottom: 10px;
}

.banner-stats-block .ap-hero-stats .number,
.banner-stats-block .ap-hero-stats .plus {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    color: var(--e-global-color-white);
}

.banner-stats-block .ap-hero-stats .text {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    color: #a0a7b9;
}

.banner-stats-block .ap-hero-stats p,
.banner-stats-block .ap-hero-stats > p {
    display: none;
}

/* Consultation action buttons row */
.ap-consultation-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.consultation-con .consultation_content .ap-consultation-call-btn {
    margin-bottom: 0;
}

.consultation-con .consultation_content .entry-content > h2:first-child,
.consultation-con .consultation_content .entry-content > h3:first-child {
    margin-bottom: 52px;
}

.ap-awards-con .practice_content .ap-awards-subtitle {
    max-width: 900px;
    margin: 16px auto 0;
    font-size: 19.2px;
    line-height: 31px;
    font-weight: 700;
    color: var(--e-global-color-text);
}

.ap-awards-con .practice_content .ap-awards-intro.entry-content .wp-block-heading,
.ap-awards-con .practice_content .ap-awards-intro.entry-content h2 {
    color: #000000;
}

.ap-awards-con .about_content.ap-awards-text.entry-content .wp-block-paragraph,
.ap-awards-con .about_content.ap-awards-text.entry-content p,
.ap-awards-con .about_content.ap-awards-text.entry-content ul li {
    color: inherit;
}

.ap-awards-con .about_content.ap-awards-text.entry-content .wp-block-list {
    padding-left: 0;
    list-style: none;
}

.ap-won-cases-con .case_content .ap-won-cases-intro.entry-content .wp-block-heading,
.ap-won-cases-con .case_content .ap-won-cases-intro.entry-content h2 {
    margin-bottom: 42px;
    color: var(--e-global-color-primary);
}

.ap-won-cases-con .case_content .ap-won-cases-intro.entry-content p {
    width: 90%;
    margin: -26px auto 42px;
}

.ap-hero-actions.entry-content .ap-hero-submit-label {
    display: none;
}

.ap-hero-actions.entry-content .ap-hero-consultation-submit {
    display: block;
}

.ap-hero-photo img,
.banner-con .ap-hero-photo .img-fluid {
    width: 100%;
    height: auto;
}

.ap-consultation-actions.entry-content {
    margin-top: 0;
}

.home .ap-home-section-label,
.front-page .ap-home-section-label {
    display: none !important;
}

/* Block editor wrappers (.wp-block-heading) inside sections */
.committed-con .committed_content.entry-content .wp-block-heading,
.client-con .client_content .entry-content .wp-block-heading,
.consultation-con .consultation_content .entry-content .wp-block-heading,
.violence-con .violence_content.entry-content .wp-block-heading,
.practice-con .practice_content .entry-content .wp-block-heading,
.ap-won-cases-con .case_content .ap-won-cases-intro.entry-content .wp-block-heading {
    margin-bottom: inherit;
}

@media (max-width: 991px) {
    .banner-stats-block .ap-hero-stats > ul,
    .banner-stats-block .ap-hero-stats ul.banner-stats-block__list,
    .banner-stats-block .ap-hero-stats .wp-block-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 20px;
    }

    .banner-stats-block .ap-hero-stats > ul > li,
    .banner-stats-block .ap-hero-stats ul.banner-stats-block__list > li,
    .banner-stats-block .ap-hero-stats .wp-block-list > li {
        border-right: none;
    }
}

@media (max-width: 767px) {
    .banner-stats-block .ap-hero-stats > ul,
    .banner-stats-block .ap-hero-stats ul.banner-stats-block__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
    }

    .banner-stats-block .ap-hero-stats > ul > li,
    .banner-stats-block .ap-hero-stats ul.banner-stats-block__list > li,
    .banner-stats-block .ap-hero-stats .wp-block-list > li {
        padding: 0 12px;
        border-right: none;
    }

    .banner-stats-block__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
    }

    .banner-stats-block__list li {
        padding: 0 12px;
        border-right: none;
    }

    .banner-stats-block .ap-hero-stats .number,
    .banner-stats-block .ap-hero-stats .plus {
        font-size: 30px;
    }

    .banner-stats-block .ap-hero-stats .banner-stats-block__icon {
        font-size: 24px;
        margin-bottom: 10px;
    }

    html body.home section.consultation-con {
        background-image: none !important;
        background-color: #3b485e !important;
    }

    html body.home section.consultation-con .consultation-sideimage {
        display: none !important;
    }

    html body.home section.consultation-con .consultation_content,
    html body.home section.consultation-con .consultation_content h2,
    html body.home section.consultation-con .consultation_content h3,
    html body.home section.consultation-con .consultation_content p,
    html body.home section.consultation-con .consultation_content .entry-content,
    html body.home section.consultation-con .consultation_content .entry-content h2,
    html body.home section.consultation-con .consultation_content .entry-content p,
    html body.home section.consultation-con .consultation_content .wp-block-heading,
    html body.home section.consultation-con .consultation_content .wp-block-paragraph {
        color: #ffffff !important;
    }
}
