.kofc-pattern .wp-block-heading h3 {
    color: #064392;
}

.kofc-pattern .wp-block-button__link {
    border-radius: 5px;
    background-color: #bb0606;
    color: #FFF;
}


/* Remove list styles */
.kofc-programs-query ul.columns-4 {
    list-style: none; /* Remove bullets */
    padding: 0;
    margin: 0;
}

/* Grid layout for 4 columns on desktop */
.kofc-programs-query ul.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: var(--wp--preset--spacing--30);   /* Space between columns */
}

.wp-block-group-menu {
    display: flex;
    justify-content: flex-end;
}

.wp-block-navigation {
    margin-right: 0;
}

.kofc-pattern .kofc-listing-item {
    display: flex;
    margin-bottom: 20px;
}
.kofc-pattern .kofc-listing-image {
    flex: 0 0 30%;
    margin-right: 20px;
}
.kofc-pattern .kofc-listing-profile-image {
    flex: 0 0 100px;
    margin-right: 20px;
}
.kofc-pattern .kofc-listing-content {
    flex: 1;
}
.kofc-pattern .kofc-listing-read-more {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .kofc-pattern .kofc-listing-item {
        flex-direction: column;
    }
    .kofc-pattern .kofc-listing-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

.kofc-footer .wp-block-column p {
    margin-block-start: 4px;
}

.kofc-pattern .wp-block-columns {
    flex-wrap: nowrap!important;
}

.kofc-pattern .wp-block-query ul li h3 a {
    text-decoration: none;
}

.kofc-pattern .kofc-section-heading {
    margin-bottom: 30px;
}

.kofc-pattern .w-1024 {
    max-width: 1024px;
    margin: 0px auto;
}
.kofc-pattern .mt-0 {
    margin-top: 0px;
    margin-block-start: 0px;
}
/* 1 column layout on mobile */
@media (max-width: 768px) {
    .kofc-programs-query ul.columns-4 {
        grid-template-columns: 1fr; /* 1 column */
    }
    .kofc-pattern .wp-block-columns {
        flex-wrap: wrap!important;
    }
}

/* Ensure each list item occupies the full width of its grid cell */
.kofc-programs-query ul.columns-4 li.wp-block-post {
    width: 100%;
}

.kofc-pattern.wp-block-group-is-layout-constrained {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.custom-media-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 30px;
}

.custom-media-content__image {
    flex: 0 0 auto;
    margin-right: 20px;
}

.custom-media-content__text {
    flex: 1;
}

@media (max-width: 768px) {
    .custom-media-content {
        flex-direction: column;
    }

    .custom-media-content__image {
        margin-right: 0;
        margin-bottom: 20px;
    }
}
