/* MK Projects Filter block styles */
.mk-projects-filter-frontend *{
    font-family: var(--maryknoll-heading-font);
    /* font-size: 16px; */
}

.mk-projects-filter-preview {
    border: 1px dashed #ccc;
    padding: 24px;
    background: #fafafa;
    text-align: center;
}

.mk-projects-filter-grid {
    display: grid;
    margin: 0;
    justify-content: space-between;
    grid-template-columns: repeat(3, 1fr)!important;
    gap: 36px !important;
}


@media(max-width:1199px){
.mk-projects-filter-grid {
    grid-template-columns: repeat(2, 1fr)!important; 
}
.mk-projects-filter-bar{
    margin-bottom: 66px !important;
}
}



@media(max-width:767px){
.mk-projects-filter-topbar {
    flex-wrap: wrap!important;
    gap: 20px!important;
    margin-bottom: 40px!important;
}
.mk-projects-filter-grid ul,
.mk-post-card-summary{
    font-size: 17px!important;
    line-height:27px!important;
}    
.mk-topbar-btn {
    font-size: 18px!important;
    width: 100%!important;
}
.mk-projects-filter-bar button {
    font-size: 18px!important;
    text-align: left!important;
}
.mk-projects-filter-bar {
    margin-bottom: 40px!important;
}
.mk-projects-filter-grid {
    grid-template-columns: repeat(1, 1fr)!important; 
    gap: 30px !important;
}
.mk-projects-filter-grid .mk-post-card-title{
    padding-bottom:0!important;
}
.mk-projects-filter-grid .mk-post-card-title a{
    font-size:20px !important;
}
}

.wp-block .mk-projects-filter-grid {
    grid-template-columns: repeat(2, 400px);
}
.mk-post-card-summary {
   display: block;
    -webkit-line-clamp: 2;      /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: visible;
    text-overflow: ellipsis;
   max-height: 100%;        /* Adjust based on your line-height */
    line-height: 1.4;        /* Adjust to match your design */
    min-height: 3.2em;          /* Optional: keeps card heights consistent */
    margin-bottom: 20px;
    color: white;
}

@media (max-width: 1300px) {
    .mk-projects-filter-grid {
        grid-template-columns: repeat(2, 400px);
        justify-content: space-between;
    }
}

@media (max-width: 850px) {
    .mk-projects-filter-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}
.mk-projects-filter-grid ul {
    margin: 0;
    padding-left: 24px;
    list-style: none;
}

.mk-projects-filter-grid ul li:before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: var(--maryknoll-pantone);
    position: absolute;
    left: -20px;
    top: 6.5px;
}

.mk-projects-filter-grid ul li {
    position: relative;
}

.mk-projects-filter-frontend .mk-post-card-image {
    height: 200px;
    overflow: hidden;
}

.mk-projects-filter-title {
    text-align: center;
    /* font-size: 2.2rem; */
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--maryknoll-oxford-blue, #000D2D);
}

.mk-projects-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 15px;
    justify-content: flex-start;
    margin-bottom: 4.8em;
}
.mk-filter-bar-region {
    justify-content: center;
}
.mk-filter-tab {
    background: white;
    border-width: 1px;
    color: #145c97;
    font-size: 1.25rem;
    border-radius: 12px!important;
    padding: 8px 18px;
    cursor: pointer;
    border-color: #145c97;
    transition: background 0.2s, color 0.2s, border 0.2s;
    line-height: 150%;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.mk-filter-tab.active,
.mk-filter-tab:focus,
.mk-filter-tab:hover {
    background-color:	#145c97;
    border-color: #145c97;
    color: #fff;
    border-radius: 12px;
}

.mk-projects-filter-topbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 3.5em;
}

.mk-topbar-btn {
   font-size: 22px;
    font-weight: 400;
    padding: 20px 5px;
    border-radius: 12px!important;
    border: 1px solid #145c97;
    font-weight: 500;
    background: #fff;
    color: #145c97;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    width: 300px;
}

.mk-topbar-btn.active,
.mk-topbar-btn:focus {
   background-color:	#145c97;
  border-color: #145c97;
  color: #fff;
}

.mk-projects-filter-heading {
    display: none;
    text-align: center;
    margin-bottom: 12px;
}

.mk-category-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maryknoll-oxford-blue, #000D2D);
    display: inline-block;
    font-style: italic;
}

.mk-projects-filter-grid .mk-post-card-title a {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -0.03em;
    font-weight: 400;
    color: white;
}

.mk-projects-filter-frontend .mk-post-card-text {
    /* font-size: 16px; */
   line-height: 1.3;
    font-weight: 500;
   color: white;
}

.mk-projects-filter-grid .mk-post-card-title {
   line-height: 1;
	margin-bottom: 15px;
}


div.mk-post-card {
	border-bottom: none !important;
	box-shadow: none;
	/*background-color: #374D63;*/
	border-radius: 12px;
}
div.mk-post-card img {
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
}
/*div.mk-post-card:nth-child(4n+2) {
	background-color: #7c2828;
}
div.mk-post-card:nth-child(4n+3) {
	background-color: #256398;
}
div.mk-post-card:nth-child(4n+4) {
	background-color: #be8a36;
}*/
div.mk-post-card-content {
	padding: 20px;
}


.mk-post-card-text ul li {
	font-weight: 400;
	margin-bottom: 4px;
}
div.mk-projects-filter-grid ul li:before {
	background: white;
}


@media (max-width: 575px) {
   .mk-projects-filter-title {
      font-size: 24px !important;
}
}