/* ACF Block wrapper */
.wp-block-acf-content-block {
    padding: 40px;
    background-color: black;
    color: white;
}

/* Internal block styling */
.my-content-block {
    overflow: hidden;
    padding: 30px 0;
    color: var(--text-color);
}

/* Container inside content block */
.my-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings without inline color */
.my-content-block h1:not([style*="color"]),
.my-content-block h2:not([style*="color"]),
.my-content-block h3:not([style*="color"]),
.my-content-block h4:not([style*="color"]),
.my-content-block h5:not([style*="color"]),
.my-content-block h6:not([style*="color"]),
.editor-styles-wrapper .wp-block-acf-content-block h1:not([style*="color"]),
.editor-styles-wrapper .wp-block-acf-content-block h2:not([style*="color"]),
.editor-styles-wrapper .wp-block-acf-content-block h3:not([style*="color"]),
.editor-styles-wrapper .wp-block-acf-content-block h4:not([style*="color"]),
.editor-styles-wrapper .wp-block-acf-content-block h5:not([style*="color"]),
.editor-styles-wrapper .wp-block-acf-content-block h6:not([style*="color"]) {
    color: var(--heading-color, #fff);
}

/* Headings with inline color – don't override */
.my-content-block h1[style*="color"],
.my-content-block h2[style*="color"],
.my-content-block h3[style*="color"],
.my-content-block h4[style*="color"],
.my-content-block h5[style*="color"],
.my-content-block h6[style*="color"],
.editor-styles-wrapper .wp-block-acf-content-block h1[style*="color"],
.editor-styles-wrapper .wp-block-acf-content-block h2[style*="color"],
.editor-styles-wrapper .wp-block-acf-content-block h3[style*="color"],
.editor-styles-wrapper .wp-block-acf-content-block h4[style*="color"],
.editor-styles-wrapper .wp-block-acf-content-block h5[style*="color"],
.editor-styles-wrapper .wp-block-acf-content-block h6[style*="color"] {
    color: inherit !important;
}

/* List styling */
.my-content-block ul {
    display: flex;
    flex-direction: column;
    list-style-position: inside;
    margin-bottom: 30px;
}

.my-content-block ul li {
    margin-bottom: 16px;
}

.my-content-block ul li p {
    display: inline;
}
