.blog-banner-news {
    overflow: hidden;
    height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blog-banner-news .blog-banner-news-overlay {
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: 2;
}

.blog-banner-news video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 1070px;
    object-fit: cover !important;
    z-index: 1;
}

.blog-banner-news .container {
    z-index: 50;
}

.blog-banner-news h2 {
    position: relative;
    font-family: "Raleway", Sans-serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2em;
    text-align: center;
    opacity: 1;
    color: #ffffff;
    margin-bottom: 20px;
}

.blog-banner-news p {
    color: #ffffff;
    font-family: "Montserrat", Sans-serif;
    font-size: 20px;
    font-weight: 300;
    text-transform: capitalize;
    text-align: center;
    opacity: 1;
}

.category-selector-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 50px;
}
@media (min-width: 768px) {
    .category-selector-container {
        padding: 0;
        padding-top: 100px;
    }
}
.category-selector-container .category-selector {
    margin-left: 25px;
    margin-bottom: 25px;
    border: 1px solid #015196;
    border-radius: 25px;
    padding: 10px 20px;
}
.category-selector-container .category-selector:hover,
.category-selector-container .category-selector.active {
    cursor: pointer;
    background-color: #015196;
    color: white;
}

.select-month-and-year {
    padding-top: 50px;
}
@media (min-width: 1024px) {
    .select-month-and-year {
        padding-top: 75px;
    }
}
@media (min-width: 1024px) {
    .select-month-and-year {
        padding: 0;
        padding-top: 100px;
    }
}
@media (min-width: 992px) {
    .select-month-and-year .col-12.col-lg-4 {
        width: calc(33.33% - 16.66px);
        margin-left: 25px;
    }
}
.select-month-and-year .col-12.col-lg-4:first-child {
    margin-left: 0;
}
.select-month-and-year select:focus {
    outline: none !important;
    box-shadow: none;
}
.select-month-and-year select {
    border: 1px solid #015196;
    border-radius: 0;
    padding: 13px 17px;
    width: 100%;
    height: 50px;
    -ms-appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: transparent;
    background-image: url("/wp-content/themes/agbar-revamp/assets/img/blue-square.svg");
    background-size: 50px;
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 50%;
    padding: 13px 17px;
    font-family: "Raleway", Sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
    text-transform: capitalize;
    color: #999999;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}
.select-month-and-year select:last-of-type {
    margin-bottom: 25px;
}
@media (min-width: 992px) {
    .select-month-and-year select:last-of-type {
        margin-bottom: 0;
    }
}
.select-month-and-year select:hover {
    cursor: pointer;
}

.content-grid-posts {
    display: flex;
    flex-wrap: wrap;
    padding: 50px 15px 25px 15px;
}
@media (min-width: 768px) {
    .content-grid-posts {
        padding: 75px 0 50px 0;
    }
}
@media (min-width: 1024px) {
    .content-grid-posts {
        padding: 100px 0 50px 0;
    }
}
.content-grid-posts .custom-card-posts {
    width: 100%;
    margin-bottom: 30px;
    -webkit-box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
    display: flex;
    flex-direction: column;
    position: relative;
}
@media (max-width: 768px) {
    .content-grid-posts .custom-card-posts:last-of-type {
        margin-bottom: 0;
    }
}
@media (min-width: 768px) {
    .content-grid-posts .custom-card-posts {
        width: calc(50% - 15px);
        margin-right: 30px;
    }
}
@media (min-width: 1024px) {
    .content-grid-posts .custom-card-posts {
        width: calc(33.33% - 20px);
    }
}
.content-grid-posts .custom-card-posts:hover {
    -webkit-box-shadow: 0 0 30px 0 rgb(0 0 0 / 15%);
    box-shadow: 0 0 30px 0 rgb(0 0 0 / 15%);
}
@media (min-width: 768px) {
    .content-grid-posts .custom-card-posts:nth-child(2n) {
        margin-right: 0;
    }
}
@media (min-width: 1024px) {
    .content-grid-posts .custom-card-posts:nth-child(2n) {
        margin-right: 30px;
    }
    .content-grid-posts .custom-card-posts:nth-child(3n) {
        margin-right: 0;
    }
}

.content-grid-posts .custom-card-posts .cat-title {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #015196;
    padding: 0.6em 1.2em;
    color: #ffffff;
    border-radius: 5px;
    font-size: 11px;
    font-family: "Montserrat", Sans-serif;
    font-weight: 400;
    text-transform: none;
}
.content-grid-posts .custom-card-posts img {
    width: 100%;
    height: 223px;
    object-fit: cover;
    object-position: center;
}
.content-grid-posts .custom-card-posts .h3-flex {
    flex: 1;
    color: var(--e-global-color-primary);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
    text-align: center;
    text-decoration: none;
}
.content-grid-posts .custom-card-posts a h3 {
    color: var(--e-global-color-primary);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
    text-align: center;
    flex: 1;
    padding: 40px 50px;
}
.content-grid-posts .custom-card-posts p {
    text-transform: capitalize;
    color: rgba(61, 68, 89, 0.5);
    font-family: "Raleway", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1em;
    text-align: center;
    margin: 0;
    padding: 15px 0;
    border-top-color: rgba(61, 68, 89, 0.1);
    border-top: 1px solid #eaeaea;
}
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
}
@media (min-width: 768px) {
    .pagination-container {
        padding-bottom: 100px;
    }
}
.pagination-container .page {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-left: 15px;
    color: var(--e-global-color-secondary);
}
.pagination-container .page:hover {
    cursor: pointer;
}
.pagination-container .page.current {
    margin-left: 15px;
    color: var(--e-global-color-accent);
    font-weight: bold;
}
.pagination-container .page:first-child {
    margin: 0;
}

.content-grid-posts .alert.alert-danger {
    width: 100%;
}
