﻿/* Make row stretch columns */
.row {
    display: flex;
    align-items: stretch;
}

/* Make both columns full height */
.col-8,
.col-4 {
    display: flex;
    flex-direction: column;
}

/* Make filter box fill the sidebar */
.custom-filter {
    flex-grow: 1;
}
#filteredArticles .article-item h3 a {
    color: var(--GC-Aspire);
    display: inline-block; /*  required for transform */
    transition: transform 0.2s ease;
}
    #filteredArticles .article-item h3 a:hover {
        transform: scale(1.05);
    }

/* RESET BOOTSTRAP ONLY INSIDE FILTER */
.custom-filter button {
    all: unset; /*  wipes Bootstrap styles */
    box-sizing: border-box;
}

/* CLEAR BUTTON */
.custom-filter #clearFilters {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

    .custom-filter #clearFilters:hover {
        background: #f0f0f0;
    }

/* TOGGLE BUTTON */
.custom-filter .filter-toggle {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    text-align: left;
}
/* FILTER WRAPPER */
.filter-section {
    position: relative;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}
/* CLEAR BUTTON */
#clearFilters {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: bold;
}

    #clearFilters:hover {
        background: #f0f0f0;
    }

/* FILTER GROUP */
.filter-group {
    margin-bottom: 15px;
    position: relative;
}

/* TOGGLE BUTTON */
.filter-toggle {
    width: 100%;
    padding: 14px 12px;
    text-align: left;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

/* DROPDOWN BASE */
.filter-group {
   
    position: relative;
    margin-bottom: 20px;
}

.filter-toggle {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    text-align: left;
}

/* HIDDEN LIST */
/*.filter-list {
    display: none;
    list-style: none;
   
}*/

/* SHOW WHEN ACTIVE */
.filter-group.active .filter-list {
    display: block;
}

/* LINKS */
.filter-list a {
    display: block;
    padding: 6px 0;
    text-decoration: none;
    color: #333;
    text-transform: capitalize;
    transition: transform 0.2s ease;
}

    /* ACTIVE */
    .filter-list a.active {
        font-weight: bold;
        color: var(--GC-Aspire);
        transform: scale(1.05);
    }
/* DROPDOWN LIST */
.filter-list {
    display: none;
    list-style: disc;
    margin-top: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px 0; /*  vertical breathing */
    padding-left: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
}

/* SHOW DROPDOWN */
.filter-group.active .filter-list {
    display: block;
}

/* LIST ITEMS */
.filter-list li {
    margin-bottom: 8px;
    padding-left: 5px;
}

/* LINKS */
.filter-list a {
    text-decoration: none;
    color: #333;
   /* display: block;*/
    padding: 4px 0;
    text-transform: capitalize;
   /* color: var(--GC-Aspire);*/
    display: inline-block; /*  required for transform */
    transition: transform 0.2s ease;
}
    .filter-list a.uppercase {
        text-transform: uppercase;
    }
.filter-section a {
    text-transform: capitalize;
}

    /* ACTIVE STATE */
.filter-list a.active {
    font-weight: bold;
    color: var(--GC-Aspire);
    transform: scale(1.05);
}

.row, .col-4 {
    overflow: visible;
}

.filter-list li {
    margin-bottom: 5px;
}
  
.article-filter ul.link {
    list-style-type: none;
    padding-left: 0;
}

    .article-filter ul.link li {
        position: relative;
        padding-left: 16px;
        margin:0;
        line-height:22px;
    }

        .article-filter ul.link li:before {
            position: absolute;
            top: 0;
            left: 0;
            font-family: 'gcicons';
            content: "\f006";
            font-size: 11px;
            padding: 0;
            color: var(--bgh-light-blue);
        }

.article-wrapper .article-details img {
    width: 100%;
}

.article-wrapper .article-details .article-content .article-header {
    margin-bottom: 2rem;
}

    .article-wrapper .article-details .article-content .article-header h3 {
        margin-bottom: 1.33333rem;
    }

    .article-wrapper .article-details .article-content .article-header ul {
        position: relative;
        display: flex;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--GC-Light-Grey);
    }

        .article-wrapper .article-details .article-content .article-header ul li {
            margin-right: 1.33333rem;
        }

            .article-wrapper .article-details .article-content .article-header ul li:last-child {
                margin-right: 0;
                margin-top: -5px;
            }

.article-wrapper .article-base {
    align-items: center;
    padding: 2rem 0;
    margin: 3rem 0 4.66667rem 0;
}

    .article-wrapper .article-base .tags, .tags {
        flex: 1;
    }

        .article-wrapper .article-base .tags ul li, .tags ul li {
            margin-right: 15px;
            margin-bottom:15px;
        }

            .article-wrapper .article-base .tags ul li:last-child, .tags ul li:last-child {
                margin-right: 0;
            }

            .article-wrapper .article-base .tags ul li a, .tags ul li a {
                line-height: 35px;
                display: block;
                border: 1px solid var(--GC-Light-Grey);
                border-radius: 0;
                padding: 0 15px;
                transition: all 0.3s ease;
                color: var(--GC-Dark-Grey);
                font-size: 0.93333rem;
            }

                .article-wrapper .article-base .tags ul li a:hover, .tags ul li a:hover {
                    color: var(--GC-White);
                    background: var(--GC-Navy);
                    border-color: var(--GC-Navy);
                }

    .article-wrapper .article-base .social-share {
        flex: 1;
        justify-content: flex-end;
    }

        .article-wrapper .article-base .social-share .share {
            margin-right: 15px;
        }


.article-wrapper .banner-half-content-detail h1 {
    /* padding-top:35px !important*/
    margin: 0;
    padding: 0;
    color: var(--GC-Aspire) !important;
}

.article-wrapper .banner-bg-navy .banner-half-content-detail h1 {
    color: var(--GC-White);
}

.articles .banner-half {
    min-height: 300px;
}

.articles .card .card-image {
    padding: 20px;
}

    .articles .card .card-image a img {
        border-radius: 10px;
    }

    .articles .card .card-image {

        max-width:100%;
        height: 180px;
        border-radius: 20px;
        background-position: center;
        background-size: cover;
    }

.articles .card .card-image .no-image {
    height: 0px;
    border-radius: 20px;
    background-position: center;
    background-size: cover;
}

    .articles .card-subtitle {
        margin-bottom: 20px;
    }

    .articles .card.card-standard-card {
            padding: 20px;
    }

    .articles .article-category {
        position: absolute;
        top: 30px;
        left: 30px;
        border-radius: 20px;
        padding: 5px 10px;
        color: #002856;
        font-weight: bold;
    }

.articles .banner-full-content-detail {
    padding: 40px;
    margin-top: -100px !important;
}

.article-wrapper .cta .cta-img {
    height: 380px;
    width: 380px;
    right: 10px;
    bottom: -65px;
}

.article-wrapper .success-slider .cta .cta-img {
    height: 380px;
    width: 380px;
    right: 10px;
    bottom: -65px;
}

.article-wrapper .cta .cta-img-bg {
    filter: drop-shadow(10px 40px 0px rgba(255, 112, 251, 1));
}

.success-slider .slick-list {
    overflow: unset;
}

.success .progress {
    display: none;
}

.banner-full-content-detail.tender-detail p:nth-child(1) {
    font-size: 20px;
    font-weight: unset;
}

.banner-full-content-detail .register,
.banner-full-content-detail .apply {
    text-align: right;
}

@media (max-width: 768px) {
    .banner-full-content-detail .register,
    .banner-full-content-detail .apply {
        text-align: left;
        margin-top: 25px;
    }
}


@media (max-width: 992px) {
    .article-filter, .article-filter ul {
        margin-bottom: 30px;
    }

    .articles .banner-half {
        min-height: 250px;
    }
}
/* MOBILE FIX */
@media (max-width: 768px) {

    .row {
        /*display: flex;*/
        flex-direction: column;
    }

    .col-4 {
        order: -1; /* 👈 filters go on top */
    }

    .col-8, .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .custom-filter {
        margin-top: 20px;
    }

        /* Make filters look like accordion */
        .custom-filter .filter-toggle {
            font-size: 16px;
            padding: 14px;
        }

    /* Bigger tap targets */
    .filter-list a {
        padding: 8px 0;
        display: block;
    }

    /* Limit dropdown height on mobile */
    .filter-list {
        max-height: 180px;
    }
}
.no-image-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #777;
}
/*.article-banner-image {
    width: 100%;
    height: 400px;*/ /* key fix */
    /*background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}*/
.banner.banner-overlay .banner-half {
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-half-content-detail {
    padding: 60px 10%;
}