/* ── Buttons ── */
.wp-block-button__link {
    background-color: #5F4B8B !important;
    border-color: #5F4B8B !important;
    color: #ffffff !important;
}
.wp-block-button__link:hover {
    background-color: #4a3a6e !important;
    border-color: #4a3a6e !important;
    color: #ffffff !important;
}

/* ── Cover block ── */
.wp-block-cover {
    min-height: 200px !important;
}
.wp-block-cover__background {
    opacity: .5 !important;
}
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover p {
    color: #ffffff !important;
}
div.wp-block-cover {
    background-color: #5F4B8B !important;
}

/* ── Typography ── */
p, li, blockquote {
    color: #2C2C2A !important;
}
.entry-content p,
.entry-content li {
    color: #2C2C2A !important;
}
h1, h2, h3, h4 {
    color: #5F4B8B !important;
}

/* ── Hide page title on static pages ── */
.page .entry-title {
    display: none !important;
}

/* ── Header ── */
.site-header {
    background-color: #5F4B8B !important;
    padding: 20px 0 !important;
    margin-bottom: 0 !important;
}
.site-title a,
.site-description,
.main-navigation a {
    color: #ffffff !important;
}
.main-navigation a:hover {
    color: #f0a500 !important;
}
.hero-section,
.wp-block-cover {
    margin-top: 0 !important;
}

/* ── Forms ── */
.wpforms-submit {
    background-color: #5F4B8B !important;
    border-color: #5F4B8B !important;
}
/* Hide gray image placeholders in blog grid */
.clbgd-post-thumbnail,
.clbgd-img-wrap,
.clbgd-featured-img {
    display: none !important;
}
/* Hide gray image placeholders */
.clbgd-post img,
.clbgd-grid img,
[class*="clbgd"] img {
    display: none !important;
}

[class*="clbgd"] .post-thumbnail,
[class*="clbgd"] .wp-post-image {
    display: none !important;
}
.masonry-item-overlay {
    display: none !important;
}

.masonry-item-content-wrapper {
    position: relative !important;
    background: none !important;
}

.masonry-item {
    background: #fff !important;
}
/* Tighten top spacing on blog grid page */
.page .masonry-container {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* Add card borders */
.masonry-item {
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 20px !important;
}
/* Remove empty top space in cards */
.masonry-item-content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Reduce title size */
.masonry-item h2,
.masonry-item h3,
.masonry-item .entry-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
}
/* Kill empty image container */
.masonry-item-content-wrapper > *:first-child:empty,
.masonry-item a:first-child:has(> img),
.masonry-item a:first-child img,
.masonry-item > a:first-child {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.masonry-item,
.masonry-item:nth-child(1n),
.masonry-item:nth-child(2n),
.masonry-item:nth-child(3n) {
    height: auto !important;
    min-height: 0 !important;
}
/* Hide duplicate image inside post content */
.single .entry-content img:first-child,
.single .entry-content > figure:first-child {
    display: none !important;
}
/* Featured image on single posts */
.single .post-thumbnail {
    text-align: center !important;
    margin: 0 auto 30px !important;
    max-width: 700px !important;
}

.single .post-thumbnail img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}
.wp-block-cover p:not([style*="color"]),
.wp-block-cover h1:not([style*="color"]),
.wp-block-cover h2:not([style*="color"]) {
    color: #ffffff !important;
}