﻿/* home page news cards */
.news-home-view {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
    display: block;
}

    .news-home-view .section-title-01 span {
        color: var(--teal-subtle-hex, #b9f2f2) !important;
    }

    .news-home-view .section-title-01 h2 {
        position: relative !important;
        color: var(--white-hex, #ffffff) !important;
    }

    .news-home-view .section-title-01 .title:before {
        background: var(--teal-hex, #2eb5b2);
    }

    .news-home-view:before, .news-home-view:after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
    }

    .news-home-view a.btn-view-all-news {
        float: right !important;
        margin-top: 25px;
    }

        .news-home-view a.btn-view-all-news::before {
            content: "\F605";
            font-family: "bootstrap-icons";
            font-weight: 400;
            font-size: 1rem;
            color: currentColor;
            margin-right: 0.5rem;
        }

@media only screen and (max-width: 575px) {
    .news-home-view {
        margin-bottom: 20px;
    }
}

.news-home-view-sm {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
}

@media only screen and (max-width: 575px) {
    .news-grid-wrapper {
        --bs-gutter-x: 20px;
    }

    .news-list-pagination {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .news-list-pagination .col-9 {
            text-align: center;
        }

    .news-list-pagination-text {
        display: flex !important;
        gap: 5px;
        margin-bottom: 10px;
    }

    .news-list-pagination-buttons {
        padding-right: 0 !important;
    }
}

.news-grid-wrapper .news-grid-center {
    padding-left: 16px;
    padding-right: 16px;
    height: 100%;
}

@media only screen and (max-width: 991px) {
    .news-grid-wrapper .news-grid-center {
        border-left: 0;
        border-right: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
        height: auto;
    }
}

.news-grid-wrapper .news-grid-column > *:not(:last-child) {
    padding-bottom: 24px;
    margin-bottom: 40px;
}

@media only screen and (max-width: 767px) {
    .news-grid-wrapper .news-grid-column > *:not(:last-child) {
        padding-bottom: 12px;
        margin-bottom: 30px;
    }
}

.news-card.news-card-small .news-content,
.news-card.news-card-large .news-content {
    position: relative;
    background-color: var(--white-hex, #ffffff);
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
    border-radius: var(--radius, 0.313rem);
    box-shadow: var(--card-shadow);
}

    .news-card.news-card-small .news-content .edit-article-wrapper,
    .news-card.news-card-large .news-content .edit-article-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        text-align: right !important;
        justify-content: flex-end !important;
        z-index: 5 !important;
    }

.news-card.news-card-small .news-content {
    margin: -15px 8px 0px 8px;
    padding: 10px 15px 10px 15px;
}


.news-card.news-card-large .news-content {
    margin: -25px 15px 0px 15px;
    padding: 25px 30px 25px 30px;
}

.news-card.news-card-small .news-content .news-title {
    height: 53px;
    overflow: hidden;
}

.news-card.news-card-large .news-content .news-title {
    height: 60px;
    overflow: hidden;
}


    .news-card.news-card-small .news-content .news-title a,
    .news-card.news-card-large .news-content .news-title a {
        color: var(--skobeloff-hex, #006e69);
    }

@media (max-width: 768px) {
    .news-card.news-card-large .news-content .news-title {
        height: auto;
        overflow: visible;
    }
}

.news-card.news-card-small .news-content:hover .news-title a,
.news-card.news-card-large .news-content:hover .news-title a {
    color: var(--navy-hex, #00313f);
}

.news-card.news-card-large .news-content p {
    height: 55px;
    overflow: hidden;
}

.news-card .news-header {
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius, 0.25rem);
    box-shadow: var(--card-shadow);
}

/* card animations */
.news-card:hover .news-header a:after {
    left: 0;
    right: 0;
    opacity: 0;
    -webkit-transition: all 400ms linear;
    transition: all 400ms linear
}

.news-card .news-header img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    text-align: center;
    justify-content: center;
    align-items: center;
    align-content: center;
    vertical-align: middle;
    background-color: var(--white-hex, #ffffff);
    border-radius: var(--radius, 0.313rem);
    -webkit-transition: all 400ms ease;
    transition: all 400ms ease;
}

.news-card .news-header a:after {
    background: rgba(var(--skobeloff-rgb, 0, 110, 105), 0.5);
    bottom: 0;
    content: "";
    left: 50%;
    position: absolute;
    right: 51%;
    top: 0;
    opacity: 1;
    pointer-events: none;
    -webkit-transition: all 400ms linear;
    transition: all 400ms linear
}

.news-card:hover .news-content {
    -webkit-box-shadow: var(--card-shadow-hover);
    box-shadow: var(--card-shadow-hover);
}
/* end-of: card animations */


.news-card .news-title {
    margin-bottom: 10px;
}

.news-card p {
    margin-bottom: 15px;
}

.news-card.news-card-large {
    position: relative;
}

    .news-card.news-card-large .news-title {
        margin-bottom: 15px;
    }

    .news-card.news-card-large .news-header {
        margin-bottom: 12px;
        border-radius: var(--border-radius, 0.25rem);
        box-shadow: var(--card-shadow);
    }

    .news-card.news-card-large .card-date {
        position: absolute;
        left: 16px;
        top: -18px;
        font-size: 1rem;
        background-color: var(--navy-hex, #00313f);
        color: var(--white-hex, #ffffff);
        text-align: center;
        text-transform: capitalize;
        font-weight: 400;
        padding: 6px 8px;
        border-radius: var(--border-radius, 0.25rem);
        z-index: 9;
    }

        .news-card.news-card-large .card-date:before {
            content: "\F1FE";
            speak: never;
            font-family: "bootstrap-icons";
            font-weight: 400;
            font-size: 0.75rem;
            padding: 6px 8px;
        }

    .news-card.news-card-large .news-content .card-tag {
        display: inline-block;
        position: relative;
        font-size: 1rem;
        padding: 2px 1px;
        text-transform: uppercase;
    }

        .news-card.news-card-large .news-content .card-tag:before {
            content: "\F5B1";
            font-family: "bootstrap-icons";
            font-weight: 400;
            font-size: 1rem;
            padding: 2px 1px;
            color: var(--teal-hex, #2eb5b2);
        }

.news-card.news-card-small {
    position: relative;
}

    .news-card.news-card-small .card-date {
        position: absolute;
        left: 16px;
        top: -18px;
        font-size: 0.75rem;
        background-color: var(--bs-btn-bg, #08313f);
        color: var(--white-hex, #ffffff);
        text-align: center;
        text-transform: capitalize;
        font-weight: 400;
        padding: 6px 8px;
        border-radius: var(--border-radius, 0.25rem);
        z-index: 9;
    }

        .news-card.news-card-small .card-date:before {
            content: "\F1FE";
            font-family: "bootstrap-icons";
            font-weight: 400;
            font-size: 0.75rem;
            padding: 6px 8px;
        }

    .news-card.news-card-small .news-content .card-tag {
        display: inline-block;
        position: relative;
        font-size: 0.75rem;
        padding: 2px 0px;
        text-transform: uppercase;
    }

        .news-card.news-card-small .news-content .card-tag:before {
            content: "\F5B1";
            font-family: "bootstrap-icons";
            font-weight: 400;
            font-size: 1rem;
            padding: 6px 4px;
            color: var(--teal-hex, #2eb5b2);
        }

@media only screen and (max-width: 575px) {
    .news-card.news-card-small h5.news-title, .news-card.news-card-small .news-title.h5 {
        font-size: 0.9rem;
    }
}

/* news button animations */
.news-card.news-card-large .news-content .news-button {
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -ms-flex-pack: center;
    justify-content: flex-start;
    text-align: left;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    z-index: 1
}

    .news-card.news-card-large .news-content .news-button .button-arrow {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        position: relative;
        -webkit-transition: .3s;
        transition: .3s;
        margin-right: 8px;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background-color: var(--skobeloff-hex, #006e69) !important;
        border: 1px solid var(--white-hex, #ffffff);
        transition: all 0.3s ease-out 0s;
        position: relative;
    }

        .news-card.news-card-large .news-content .news-button .button-arrow i {
            position: absolute;
            font-weight: 700;
            font-size: 2rem;
            color: var(--white-hex, #ffffff);
            z-index: 1;
            bottom: -18px;
            left: -7px;
            -webkit-transition: 0.4s cubic-bezier(0.12, 0, 0.39, 0);
            transition: 0.4s cubic-bezier(0.12, 0, 0.39, 0);
        }

.news-card.news-card-large .news-content:hover .news-button .button-arrow {
    border: 1px solid var(--skobeloff-hex, #006e69);
}

    .news-card.news-card-large .news-content:hover .news-button .button-arrow i {
        color: var(--white-hex);
        transform: translate(10px, -7px);
        -webkit-transition: all 0.3s ease-out 0s;
        transition: all 0.3s ease-out 0s;
    }
/* end-of: news button animations */
/* end of: home page news cards */


/* news list */
.news-filter-tabs .custom-tabs {
    padding: 1rem;
    background-color: var(--skobeloff-hex, #006e69);
    border-radius: var(--radius, 0.313rem);
    overflow: hidden;
    box-shadow: var(--footer-shadow);
}

    .news-filter-tabs .custom-tabs .nav-link {
        color: var(--white-hex, #ffffff);
        border: none;
        padding: 15px 25px;
        transition: all 0.3s ease;
    }

        .news-filter-tabs .custom-tabs .nav-link.active {
            color: var(--white-hex, #ffffff);
            background-color: var(--navy-hex, #00313f);
            box-shadow: 0 4px 6px rgba(var(--skobeloff-rgb, 0, 110, 105), 0.3);
        }

.nav-contents i,
.nav-contents span {
    display: block;
    width: 100%;
    white-space: nowrap;
    color: var(--skobeloff-hex, #006e69);
    font-weight: 600;
}

.news-filters .news-filter-container {
    background: var(--light-hex, #e3e3e3);
    border-radius: var(--radius, 0.313rem);
    box-shadow: var(--card-shadow, rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px);
}

.input-label {
    color: var(--skobeloff-hex, #006e69);
}

.search-wrapper {
    width: 100%;
}

.search-box {
    position: relative;
    border-radius: var(--radius, 0.313rem);
    transition: all 0.3s ease;
}

    .search-box:focus-within {
        box-shadow: 0 3px 20px rgba(0,0,0,0.1);
    }

.search-input {
    border-radius: var(--radius, 0.313rem);
    padding-left: 45px;
    padding-right: 20px;
    transition: all 0.3s ease;
    height: 50px;
}

    .search-input:focus {
        box-shadow: none;
    }

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-hex, #757575);
    z-index: 10;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--radius, 0.313rem);
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.clear-button {
    position: absolute;
    right: 125px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--radius, 0.313rem);
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.filter-buttons button,
.sort-button {
    height: 48px;
    white-space: nowrap;
}

.category-filters .custom-dropdown {
    position: absolute;
    overflow: scroll;
    padding-top: 10px;
    min-width: 250px;
    max-height: 300px;
    box-sizing: border-box;
    background: var(--white-hex, #ffffff);
    border: 1px solid var(--light-hex, #e3e3e3);
    border-radius: var(--radius, 0.313rem);
    box-shadow: var(--shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
    z-index: 100;
}

.date-range-filter, .category-search {
    height: 50px;
}

.date-range-icon, .category-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    padding: 8px 3px;
    transition: all 0.3s ease;
    z-index: 9;
}

.category-filters .custom-dropdown input[type=checkbox] {
    width: 16px;
    height: 16px;
    line-height: 16px;
    vertical-align: middle;
    margin-top: -3px;
    margin-right: 7px;
}
/* end of: news list */

.bg-news-left, .bg-news-left-svg {
    position: absolute;
    top: 0;
    left: 0;
}

.bg-news-left-svg {
    width: 302px;
    height: 620px;
}

.bg-news-right, .bg-news-right-svg {
    position: absolute;
    right: 0;
    bottom: 0;
}

.bg-news-right-svg {
    width: 420px;
    height: 587px;
}