.header-drop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.header-drop h2 {
    color: #000;
}

.category-filter {
    margin-bottom: 20px;
    text-align: center;
}

.filter-dropdown {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 200px;
    width: 100%;
}


button#loadMoreButton {
    border: 1px solid #072B61;
    background: #072B61 !important;
    color: #fff;
    border-radius: 50px;
    font-size: 18px;
    text-transform: none;
    transition: .5s;
    max-width: 300px;
    width: 100%;
    margin: 50px auto auto;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-button button#loadMoreButton:hover {
    color: #072B61 !important;
    background: #fff !important;
}

#postContainer .blog_card h3 {
    font-size: 23px;
    line-height: 23px;
}

.grid {
    display: grid;
    height: 100%;
}

.grid .blog_card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}


.grid .blog_card .image img,
.grid .blog_card h3,
.grid .blog_card p {
    transition: .5s;
}

.grid .blog_card:hover h3,
.grid .blog_card:hover p {
    color: #072B61;
}

.grid .blog_card p {
    color: #000000;
}

.grid .blog_card h3 {
    letter-spacing: 0;
    color: #000000;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    min-height: 33px;
}

.grid .blog_card .image {
    position: relative;
    overflow: hidden;
    max-height: 220px;
    height: 100%;
    margin-bottom: 30px;
    border-radius: 4px;
}

.grid .blog_card .image img {
    width: 100%;
    object-fit: cover;
    max-height: 220px;
    min-height: 220px;
    height: 100%;
}

.grid .blog_card:hover .image img {
    transform: scale(1.1);
}

.grid .blog_card .category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.grid .blog_card .category p {
    margin: 0 !important;
    text-transform: uppercase;
    font-size: 12px !important;
}

.grid .blog_card .category p:first-of-type {
    font-weight: 600;
}

.grid .blog_card p.details {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    margin-bottom: 20px;
}

.grid .blog_card p.read-more {
    font-size: 15px;
    font-weight: 700;
    line-height: 17.6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FF850D;
    transition: .5s;
}

.grid .blog_card:hover p.read-more {
    gap: 13px;
}

.grid .blog_card p.read-more svg {
    max-height: 14.54px;
}

.text-align {
    text-align: center;
}

button#loadmore {
    border: white;
    background: white !important;
    color: #072B61;
    max-width: 300px;
    width: 100%;
    border-radius: 8px;
    margin: 50px auto auto;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
}

.cta_button a {
    font-family: "Work Sans", Work Sans;
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    color: #000;
    border: 1px solid #000000;
    border-radius: 47px;
}

.cta_button a svg {
    height: 13px;
}

@media (min-width: 992px) {
    .grid {
        display: grid;
        gap: 45px;
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* Default style for 3 or more posts */
    .grid:has(.blog_card:nth-child(n+4)) {
        grid-template-rows: 1fr 1fr;
    }

    /* Style for 1 to 3 posts */
    .grid:has(.blog_card:nth-child(-n+3)) {
        grid-template-rows: 1fr;
    }

    .cta_button a {
        margin-top: 90px;
    }

}

@media (max-width: 991px) {
    .grid {
        grid-template-rows: unset;
        grid-template-columns: unset;
        gap: 50px;
    }

    .grid .blog_card h3 {
        font-size: 25px;
    }

    .cta_button a {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {}