﻿.blog--homebanner {
    background-color: #004d94;
    color: #FFF;
    padding: 30px 0;
}

    .blog--homebanner h1 {
        color: #FFF;
        font-size: 2.5rem !important;
        margin-top: unset;
        margin-bottom: 10px;
    }

    .blog--homebanner > div {
        font-size: 1.5rem;
    }

.blog-body .section {
    display: flex;
    flex-wrap: wrap;
}

@media screen and (max-width: 599px) {
    .blog--homebanner > div {
        font-size: 1rem;
    }
}

.post .post-info {
    font-size: 13px;
    color: #000;
}

.post-date {
    color: #3f8da6;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 26px;
    margin-bottom: 5px;
}

h1 a, h2 a {
    text-decoration: none;
}

.post .post-info {
    font-size: 13px;
    color: #ff6800;
}

.post .post-body a {
    color: #3f8da6;
    font-weight: 600;
    background-image: none !important;
}

.post .post-info a {
    color: #ff6800;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

/* --- Blog filter panel (slidefilter style) --- */
.bl-filter-panel {
    background-color: #fff;
    height: 100%;
    border-left: 1px solid #d9d9d9;
}

    .bl-filter-panel .filter-body.main {
        padding: 45px 15px 30px 40px;
    }

    .bl-filter-panel .widget {
        padding: 0;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    }

        .bl-filter-panel .widget:last-child {
            border-bottom: none;
        }

    .bl-filter-panel .widget-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 3px 16px 0px;
        margin: 0;
        font-weight: 600;
        font-size: 16px;
        line-height: 1.2;
        color: #000;
        cursor: pointer;
        user-select: none;
    }

        .bl-filter-panel .widget-header::after {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            border-left: 1.5px solid #3f8da6;
            border-bottom: 1.5px solid #3f8da6;
            transform: rotate(-45deg);
            transition: transform 200ms ease;
            flex-shrink: 0;
            margin-left: 0.75rem;
        }

    .bl-filter-panel .widget.open > .widget-header::after {
        transform: rotate(135deg);
    }

    .bl-filter-panel .widget-content {
        display: none;
        flex-direction: column;
        gap: 4px;
        padding-bottom: 16px;
    }

    .bl-filter-panel .widget.open > .widget-content {
        display: flex;
    }

    .bl-filter-panel .widget-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

        .bl-filter-panel .widget-content ul li {
            padding: 4px 0;
        }

            .bl-filter-panel .widget-content ul li a {
                font-weight: 500;
                font-size: 1rem;
                line-height: 1.4;
                color: #000 !important;
                opacity: 0.69;
                transition: opacity 150ms ease;
                text-decoration: none !important;
            }

                .bl-filter-panel .widget-content ul li a:hover {
                    opacity: 1;
                }

.sidebar-wrapper ul li a {
    font-size: 1em !important;
}



.widget {
    padding: 3% 0;
    margin-bottom: 0px;
}

.sidebar-wrapper ul li a {
    font-size: 1rem !important;
    color: #004d94 !important;
    text-decoration: none !important;
    font-weight: bold;
}

.post-body.text, .post-body.text p, .post-body.text span {
    font-style: normal;
    font-size: 1rem !important;
    color: #000;
    margin: 15px 0;
}

    .post-body.text a {
        text-decoration: underline;
    }

        .post-body.text a.blogbutton {
            text-decoration: none;
        }

            .post-body.text a.blogbutton:hover {
                color: #fff !important;
            }

.post .read-more {
    font-size: 1.2rem;
    font-weight: 700 !important;
}

a.blogbutton {
    clear: both;
    margin: 15px 0 0 0;
    padding: 0 15px;
    text-decoration: none;
    color: #fff !important;
    min-height: 55px;
    background-color: #3f8da6;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    ;
    justify-content: center;
    border: 0;
    text-decoration: none !important;
    border-radius: 3px;
}

    a.blogbutton:hover {
        background-color: #004d94;
        color: #fff;
    }

.post .post-body a:hover, .post .post-tags a:hover {
    color: #666;
}

#searchbox {
    display: flex;
}


.widget-content #searchbox input[type=text] {
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #d7d7d7;
    padding: 2%;
    height: 40px;
    width: 66%;
    outline: none !important;
}

.widget-content #searchbox input[type=submit] {
    float: right;
    border: none;
    padding: 0;
    height: 40px;
    width: 33%;
    background-color: #ff6800;
    color: #fff;
    border-radius: 25px !important;
    border: 1px solid #ff6800;
    font-weight: 700;
    cursor: pointer;
}

    .widget-content #searchbox input[type=submit]:hover {
        background-color: #fff;
        color: #ff6800;
    }

.search-page .search-page-searchbox form input[type=submit] {
    border: none;
    padding: 0;
    height: 40px;
    width: 150px;
    background-color: #ff6800;
    color: #fff;
    border-radius: 25px !important;
    border: 1px solid #ff6800;
    font-weight: 700;
    cursor: pointer;
}

.search-page .searchresult a {
    color: #ff6800;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.2rem;
}

    .search-page .searchresult a:hover {
        color: #004d94;
    }

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0px;
}

.search-page .searchpage ul.paging li.active {
    background-color: #000;
}

/* --- Desktop sidebar --- */
@media screen and (min-width: 992px) {
    .blog-body {
        background: linear-gradient(90deg,#f6faff 80%, rgba(255, 255, 255, 1) 0%);
    }

        .blog-body .content-wrapper {
            background-color: #f6faff;
            width: 70% !important;
            padding-right: 30px;
        }

    .sidebar-wrapper {
        width: 30% !important;
    }

    .bl-filter-panel .widget.open > .widget-content {
        display: flex;
    }

    .bl-filter-togg {
        display: none;
    }

    .bl-filter-head {
        display: none;
    }

    .bl-filter-overlay {
        display: none;
    }

    .bl-filter-panel .filter-body.main {
        position: sticky;
        top: 115px;
        max-height: calc(100vh - 130px);
        overflow: auto;
    }
}

/* --- Mobile sidebar (slide-up bottom sheet) --- */
@media screen and (max-width: 991px) {

    .bl-filter-togg {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        padding: 0px;
        height: 50px;
        font-size: 16px;
        font-weight: 600;
        color: #262121;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
    }

        .bl-filter-togg:after {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            border-left: 1.5px solid #3f8da6;
            border-bottom: 1.5px solid #3f8da6;
            transform: rotate(-45deg);
            transition: transform 200ms ease;
            flex-shrink: 0;
            margin-left: 0.75rem;
        }

        .bl-filter-togg:hover {
            background-color: #ebebeb;
        }

    .sidebar-wrapper {
        position: static;
        background-color: #FFF;
    }

    .content-wrapper {
        background-color: #f6faff;
    }

    .bl-filter-panel {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 21;
        background-color: #fff;
        border-radius: 15px 15px 0 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease;
        border-left: none;
        display: flex;
        flex-direction: column;
    }

        .bl-filter-panel.open {
            max-height: calc(100vh - 90px);
            opacity: 1;
            border-bottom: 1px solid #dbdbdb;
        }

    .bl-filter-head {
        background-color: #fafafa;
        padding: 20px 15px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

        .bl-filter-head span {
            color: #1b1b1b;
            font-size: 20px;
            font-weight: 700;
        }

        .bl-filter-head .close {
            width: 25px;
            height: 25px;
            position: relative;
            transform: rotate(45deg);
            cursor: pointer;
        }

            .bl-filter-head .close::before {
                content: "";
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%) rotate(90deg);
                width: 2px;
                height: 100%;
                border-radius: 10px;
                background-color: #000;
            }

            .bl-filter-head .close::after {
                content: "";
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                width: 2px;
                height: 100%;
                border-radius: 10px;
                background-color: #000;
            }

    .bl-filter-panel .filter-body.main {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 0 15px 30px;
    }


    .bl-filter-panel .widget {
        border-bottom: 1px solid #000;
    }

    .bl-filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
        opacity: 0;
        z-index: 20;
        cursor: pointer;
        transition: opacity 0.2s ease;
    }

        .bl-filter-overlay.active {
            display: block;
            opacity: 0.5;
        }

    .blog-body .main-section {
        display: flex;
        flex-direction: column-reverse;
        gap: 0px;
    }
}
