#apg-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
}
#apg-category-buttons button {
    margin: 5px;
    padding: 10px 17px;
    background: #0c5697;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-family: "Montserrat";
}
#apg-category-buttons button:hover {
    background: #021333;
}
.apg-filter.active {
    background-color: #021333 !important;
    color: #fff !important;
}
#apg-search-container {
    display: flex;
    height: 45px;
    width: 26%;
}
#apg-search::placeholder {
    color: #0c5697;
}
.cfp-search-button {
    background: none;
    color: #0c5697;
    border: 1px solid #0c5697;
    border-top-right-radius: 100em;
    border-bottom-right-radius: 100em;
    border-left: 0 solid #fff !important;
    height: 45px;
}
#apg-search {
    border-color: #0c5697;
    color: #0c5697;
    border-top-left-radius: 100em;
    border-bottom-left-radius: 100em;
    border-right: none;
    font-style: italic;
    height: 45px;
}
.apg-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-around;
}
.apg-post {
    width: 31%;
    background: #f2f2f2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.apg-post img {
    max-width: 100%;
    height: auto;
}
.apg-post h4 {
    margin: 20px 20px 0 20px;
}
.apg-post-date {
    padding-left: 20px;
    font-style: italic;
    font-size: 14px;
}
.apg-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 20px 20px 20px;
    align-items: flex-end;
}
.apg-content a {
    text-align: center;
    border: 1px solid #0c5697;
    padding: 10px;
    width: 31%;
    margin-bottom: 10px;
}
.apg-content a:hover {
    text-align: center;
    border: 1px solid #0c5697;
    padding: 10px;
    background: #0c5697;
    width: 31%;
    color: #ffffff;
}
.apg-excerpt {
    width: 60%;
}
.apg-read-link {
    margin-bottom: 15px !important;
}
.apg-pagination-links {
    font-size: 14px !important;
    text-align: center;
    padding-top: 40px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.apg-pagination-links .apg-page-link.apg-next:hover,
.apg-pagination-links .apg-page-link.apg-prev:hover  {  
    background: #ffffff !important;
    color: #021333 !important;
}
.apg-pagination-links .apg-page-link.apg-next,
.apg-pagination-links .apg-page-link.apg-prev,
.apg-pagination-links .apg-page-link.apg-next:hover,
.apg-pagination-links .apg-page-link.apg-prev:hover  {  
    border: 0 solid #0c5697 !important;
}
.apg-pagination-links .apg-page-link {
    border: 1px solid #0c5697;
    width: 30px;
    margin: 0 3px 0 3px;
    padding: 3px 7px 3px 7px;
}
.apg-pagination-links .apg-page-link.active {
    background: #021333 !important;
}
.apg-pagination-links .apg-page-link.active,
.apg-pagination-links .apg-page-link:hover {
    border: 1px solid #0c5697;
    background: #0c5697;
    color: #fff;
    width: 20px;
    margin: 0 3px 0 3px;
    padding: 3px 7px 3px 7px;
}
.apg-ellipsis {
    padding: 0 3px;
    color: #999;
    font-size: 14px;
}

#apg-loading-spinner {
    text-align: center;
    margin: 20px 0;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

		.single h2 {
			font-size: 36px !important;
			color: #0c5697;
		}
		.single ol,
		.single ul {
			margin: 0;
			padding: 0 0 0 18px;
		}
		.single hr {
			margin-bottom: 15px;
		}
		.single li {
			padding: 0 0 15px 0;
		}
@media only screen and (max-width: 1500px) {
    .apg-post {
        width: 48%;
    }
    .apg-grid {
        justify-content: flex-start;
    }
}
@media only screen and (max-width: 1024px) {
    #apg-category-header {
        display: block;
    }
    #apg-search-container {
        display: flex;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }
    #apg-category-buttons,
    .apg-post {
        width: 100%;
        max-width: 800px;
    }
    #apg-category-buttons {
        margin: 0 auto;
        padding-bottom: 20px;
    }   
    .apg-grid {
        justify-content: center !important;
    }        
}
@media only screen and (max-width: 640px) {
    #apg-category-buttons {
        text-align: center;
    }
}
