﻿/* ======================================================
   Microcredential Search By Type & Category Widget
   ====================================================== */

.wMicrocredentialFilter_wrapper .btn-selected {
    background-color: #fff;
    border-color: var(--saColorPrimary);
}

.wMicrocredentialFilter_wrapper .filter-title {
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.wMicrocredentialFilter_wrapper .filter-format-title {
    font-size: medium !important;
}
.btn-group-filter {
    width: 100%;
}

.btn-filter {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--saColorInformation700);
    background-color: #ffffff;
    color: var(--saColorBrandBlue);
    transition: all 0.3s ease;
}

    .btn-filter:hover {
        background-color: #ffffff;
        border: 1px solid var(--saColorInformation700);
        color: var(--saColorBrandBlue);
    }

    .btn-filter.btn-selected {
        background-color: var(--saColorBrandBlue);
        color: #ffffff;
        border-color: var(--saColorInformation700);
    }

    .btn-filter:first-child {
        border-radius: 6px 0 0 6px;
    }

    .btn-filter:last-child {
        border-radius: 0 6px 6px 0;
    }

.btn-check:checked + .btn,
:not(.btn-check) + .btn:active,
.btn:first-child:active {
    border: 1px solid var(--saColorInformation700);
    background-color: #ffffff;
    color: var(--saColorBrandBlue);
}

.btn:active,
.btn.btn-selected:active {
    border: 1px solid var(--saColorInformation700);
    background-color: var(--saColorBrandBlue);
    color: #ffffff;
}

/* =========================
   Mobile layout (stacked)
   ========================= */

@media (max-width: 767px) {
    .wMicrocredentialCategoryFilter__ByFormat .btn-group-filter {
        flex-direction: column;
    }

    .wMicrocredentialCategoryFilter__ByFormat .btn-filter {
        border: 1px solid #3b5edf;
        text-align: center;
        width: 100%;
    }

    .btn-group .btn-filter:nth-child(2) {
        border-top: none;
        border-bottom: none;
    }


    .btn-group.btn-group-filter .btn-filter:first-child {
        border-radius: 6px 6px 0 0;
    }

    .btn-group.btn-group-filter .btn-filter:last-child {
        border-radius: 0 0 6px 6px;
    }

    .btn-group > .btn-group:not(:first-child),
    .btn-group > :not(.btn-check:first-child) + .btn {
        margin-left: 0;
    }

    :not(.btn-check) + .btn.btn-filter:active, .btn.btn-filter:first-child:active {
        color: var(--saColorBrandBlue);
        background-color: #ffffff;
        border-color: var(--saColorInformation700);
    }
}

/* =============================================
  Microcredentials format and category filters
   ============================================== */

@media screen and (min-width: 768px) {
    .wSearchMicrocredentialHeader {
        position: relative;
        background-image: url('/images/codaldesigns/orange-icon-flow-half.svg');
        background-position: bottom right;
        background-repeat: no-repeat;
        padding: 56px 0 40px 0;
    }
}

.wMicrocredentialCategoryFilter__FilterPills {
    overflow-x: scroll;
    flex-wrap: nowrap;
}

@media screen and (min-width: 1200px) {
    .wMicrocredentialCategoryFilter__FilterPills {
        overflow-x: hidden;
        flex-wrap: wrap;
    }
}

.wMicrocredentialCategoryFilter__FilterPills .btn-category-filter {
    color: var(--saColorBrandBlue);
    font-size: 14px;
    line-height: 1;
    letter-spacing: .75px;
    font-weight: 400;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    border-radius: 28px;
    border: 1px solid var(--saColorNeutralBorder);
    background: none;
    white-space: nowrap;
}

    .wMicrocredentialCategoryFilter__FilterPills .btn-category-filter.is-active {
        border: 1px solid var(--saColorBrandBlue);
        border-width: 2px;
        font-weight: 600;
        color: var(--saColorBrandBlue);
    }


/* ===============================
   Microcredential Category Card 
   ============================= */

.wMicrocredentialCategoryCard {
    padding: 16px 24px 20px 24px;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: .25px;
    height: 100%;
    border: 1px solid var(--saColorNeutralBorder);
}


    .wMicrocredentialCategoryCard .wMicrocredentialCategoryCard__Title {
        font-weight: 600;
        font-size: 20px;
        line-height: 26px;
        letter-spacing: 0.15px;
        margin-bottom: 12px;
        margin-top: 6px;
    }


    .wMicrocredentialCategoryCard .wMicrocredential__Icon-holder {
        font-weight: 500;
        font-size: 12px;
        line-height: 12px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        border-radius: 40px;
        padding: 5px 12px;
        display: flex;
        align-items: center;
    }

    .wMicrocredentialCategoryCard .wMicrocredential__Icon-OnDemand {
        color: var(--saColorSecondaryBlue600);
        background-color: var(--saColorDodgerBlueLight);
        border-radius: 40px;
    }

        .wMicrocredentialCategoryCard .wMicrocredential__Icon-OnDemand .wMicrocredential__Type {
            color: var(--saColorSecondaryBlue700);
        }

    .wMicrocredentialCategoryCard .wMicrocredential__Icon-Live {
        color: var(--saColorBrandBlue);
        background-color: var(--saColorInformation50);
        border-radius: 40px;
    }

        .wMicrocredentialCategoryCard .wMicrocredential__Icon-Live .wMicrocredential__Type {
            color: var(--saColorInformation700);
        }

    .wMicrocredentialCategoryCard .wMicrocredentialCard__Metadata {
        margin-bottom: 11px;
    }

        .wMicrocredentialCategoryCard .wMicrocredentialCard__Metadata .fe-icon {
            font-size: 20px;
            color: var(--saColorNeutral400);
        }

    .wMicrocredentialCategoryCard .wMicrocredentialCard__Tag {
        border-radius: 40px;
        padding: 2px 8px;
        display: flex;
        align-items: center;
        font-size: 12px;
        line-height: 16px;
    }

        .wMicrocredentialCategoryCard .wMicrocredentialCard__Tag.popular {
            color: #24AB99;
            border: 1px solid #24AB99;
        }

        .wMicrocredentialCategoryCard .wMicrocredentialCard__Tag.trending {
            color: #3697FF;
            border: 1px solid #3697FF;
        }

/* ===================================
   New styles for elements on the page
   =================================== */
.tbMargins {
    margin-top: 40px;
    margin-bottom: 40px;
}

.row.section-bg-md-gray-mobile,
.section-bg-md-gray-mobile {
    background-color: #f3f3f3;
    border-radius: 12px;
    padding: 24px 20px 24px 20px;
}

.row.section-bg-md-gray,
.section-bg-md-gray {
    background-color: #ffffff;
    margin-top: 40px;
    margin-bottom: 40px;
}


@media screen and (min-width: 992px) {
    .tbMargins {
        margin-top: 112px;
        margin-bottom: 112px;
    }

    .row.section-bg-md-gray,
    .section-bg-md-gray {
        background-color: #f3f3f3;
        margin-top: 112px;
        margin-bottom: 112px;
    }

    .row.section-bg-md-gray-mobile,
    .section-bg-md-gray-mobile {
        background-color: #F3F3F3;
        border-radius: 0;
        padding: 0 12px;
    }
}


.gText--medium {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.15px;
}

@media (min-width: 768px) {
    .gText--medium {
        font-size: 20px;
        line-height: 20px;
        letter-spacing: 0.5px;
    }
}

/* --- Pagination Styles --- */

.pagination {
    column-gap: 8px;
}

    .pagination .page-link {
        color: var(--saColorNeutral700);
        font-size: 0.75rem; /* 12px / 16 */
        letter-spacing: 0.75px;
        border: none;
        background: none;
    }

    .pagination .page-item.active .page-link {
        color: var(--saColorBrandBlue);
        font-weight: 400;
        border: 1px solid var(--saColorBrandBlue);
        border-radius: 6px;
        background-color: var(--saColorInformation50);
    }
