
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Mobile layout (1 column) */
@media (min-width: 767px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.filter-container {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.filter-title {
    width: 100%;
    text-align: center;
    font-size: 25px;
    margin-bottom: 15px;
}

select#category-filter option, select#factsheet-category option{
    text-wrap-mode: wrap;
    white-space: normal;
}

select#category-filter, select#factsheet-category {
    height: 52px;
    padding-left: 10px;
    width: auto;
    border-radius: 8px;
    padding-right: 27px;
    background-color: #a4227d;
    color: #ffffff;
    font-size: 15px;
    max-width: 100%;
}

@media (min-width: 768px){
    .filter-container {
        display: flex;
        flex-direction: column;
        align-content: flex-end;
        align-items: flex-end;
        margin-bottom: 50px;
        width: auto;
    }

    select#category-filter, select#factsheet-category {
        height: 52px;
        padding-left: 30px;
        width: 100%;
    }
}

.custom-post-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.post-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.post-title-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

}

.post-bottom-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 5px;
}

.post-image {
    display: block;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #0000001a;
}


.post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    margin-top: 10px;
    font-weight: 600;
}

.post-title {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

@media (min-width: 769px){
    .post-title {
    font-size: 24px;
}
}

.post-title a:hover {
    color: var(--color-primary);
}

p.post-download{
    display: flex;
    margin-top: 18px;
}

p.post-download .download-btn{
    font-size: 18px;
    font-weight: 700;
    border: 0;
    color: #8f0b6a;
    line-height: 16px;
    padding: 0;
    position: relative;
    border-radius: 0;
    white-space: nowrap;
    transition: all .3s;
    display: flex;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

}
p.post-download .download-btn .icon {
    color: inherit;
    margin: 0;
}

p.post-publish-date {
    margin-bottom: 5px;
    margin-top: 15px;
    font-size: 14px;
    padding: 0 5px;
}


.custom-blog-post #content .lqd-contents {
    width: 100%;
}

.post-top-content {
    position: relative;
}

.category-wrapper {
    display: flex;
    margin-top: 0;
    position: absolute;
    top: 10px;
    left: 10px;
}

.post-category {
    flex: 0 auto;
    padding: .25em 1em;
    margin-inline-end: .5em;
    border-radius: 3px;
    background-color: #f3f3f3;
    margin-bottom: 0;
    font-size:12px;
}

.pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

a.page-numbers {
    background-color: #ededed;
    color: #000000;
    border: 0;
    border-radius: 6px;
    padding: 0 20px;
    line-height: 36px;
}

span.page-numbers.current {
    background-color: #a4227d;
    color: #ffffff;
    border-radius: 6px;
    padding: 0 20px;
    line-height: 36px;
}

.view-more-wrapper {
    border-width: 1px;
    border-radius: 7em;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 1.15em 2.1em;
    align-items: center;
    background-color: rgb(164, 34, 125);
    border-color: rgb(164, 34, 125);
    color: rgb(255, 255, 255);
    border: 1px solid var(--color-primary);
    text-transform: uppercase;
    min-width: 280px;
    text-align: center;
    letter-spacing: 1px;
}

.view-more-wrapper:hover {
    border-color: rgba(0,0,0,0);
    background-color: var(--color-primary);
    color: #fff;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);

}

.oped-section h2 {
    color: #000000;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}

.oped-section {
    margin-top: 20px;
    margin-bottom: 50px;
}

p.factsheet-download .download-btn {
    font-size: 18px;
    font-weight: 700;
    border: 0;
    color: #8f0b6a;
    line-height: 16px;
    padding: 0;
    position: relative;
    border-radius: 0;
    white-space: nowrap;
    transition: all .3s;
    display: flex;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

p.factsheet-download {
    display: flex;
    padding: 0 5px;
    margin-top: 18px;
}

#custom-factsheet-container .filter-title {
    display: none;
}

.related-opeds-wrapper {
    background-color: #f7f7f7;
}

.related-opeds-wrapper .container:not(.shortcode-output){
    padding-top: 50px;
    padding-bottom: 30px;
}
.container .posts-grid{
    padding-bottom: 50px;
}

.margin-3 .wpb_content_element {
    margin-bottom: 0;
}

#custom-factsheet-container .post-image {
    height: 175px;
}

@media (min-width: 769px){
    #custom-factsheet-container .post-image {
    height: 240px;
}
    .factsheet-header-wrapper{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        justify-items: start;
        margin-bottom: 50px;
    }

    .category-layout.factsheet-header-wrapper{
        display: grid;
        grid-template-columns: 1fr 3fr 1fr;
        justify-items: start;
        margin-bottom: 50px;
    }
}
.factsheet-title {
    width: 100%;
}
.factsheet-title h1 {
    color: #000000;
    font-size: 38px;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
}

.taxonomy-container {
    padding-top: 120px;
}

.taxonomy-description{
    font-weight: 500;
    text-align: center;
    font-size: 19px;
    line-height: 125%;
}

@media (min-width: 769px){
    .taxonomy-description{
        font-weight: 500;
        text-align: center;
        font-size: 22px;
        line-height: 125%;
    }
}

a.see-more-button {
    border-radius: 7em;
    border-width: 1px;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 16px;
    background-color: rgb(164, 34, 125);
    border-color: rgb(164, 34, 125);
    color: rgb(255, 255, 255);
    display: block;
    padding: 1.15em 2.1em;
    text-transform: uppercase;
    text-align: center;
    justify-content: center;
    margin-bottom: 40px;
}

.see-more-wrapper .container{
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.post-category-link{color:#0a0808;display:block;}.post-category-link:hover{color:#000}