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

.wMicrocredentialFilter_wrapper .btn-selected {
    background-color: var(--saColorWhite);
    border-color: var(--saColorBrandBlack);
}

.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: var(--saColorWhite);
    color: var(--saColorBrandBlue);
    transition: all 0.3s ease;
}

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

    .btn-filter.btn-selected {
        background-color: var(--saColorBrandBlue);
        color: var(--saColorWhite);
        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: var(--saColorWhite);
    color: var(--saColorBrandBlue);
}

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

/* =========================
   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: var(--saColorWhite);
        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(--saColorNeutral300);
    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(--saColorNeutral300);
}


    .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(--saColorTertiaryBlue600);
        background-color: var(--saColorTertiaryBlue50);
        border-radius: 40px;
    }

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

    .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: var(--saColorTertiaryMint600);
            border: 1px solid var(--saColorTertiaryMint600);
        }

        .wMicrocredentialCategoryCard .wMicrocredentialCard__Tag.trending {
            color: var(--saColorTertiaryBlue500);
            border: 1px solid var(--saColorTertiaryBlue500);
        }

/* ===================================
   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: var(--saColorLightGray);
    border-radius: 12px;
    padding: 24px 20px 24px 20px;
}

.row.section-bg-md-gray,
.section-bg-md-gray {
    background-color: var(--saColorWhite);
    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: var(--saColorLightGray);
        margin-top: 112px;
        margin-bottom: 112px;
    }

    .row.section-bg-md-gray-mobile,
    .section-bg-md-gray-mobile {
        background-color: var(--saColorLightGray);
        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);
    }

/* --- With Cart Layout Styles --- */

.wMicrocredentialCategoryCard__Description {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wMicrocredentialCategoryCard__Description:hover {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.wMicrocredentialCard__Formats .accordion-item {
    border-bottom: solid 1px var(--bs-accordion-border-color) !important;
}

.wMicrocredentialCard__QuantitySelector {
    height: min-content;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* removes html native arrows Chrome, Safari, Edge (WebKit/Blink-based) */
.wMicrocredentialCard__QuantitySelector .itemCountDisplay::-webkit-outer-spin-button,
.itemCountDisplay::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* removes html native arrows Firefox */
.wMicrocredentialCard__QuantitySelector .itemCountDisplay {
    -moz-appearance: textfield;
    appearance: textfield;
}

.wMicrocredentialCard__QuantitySelector .btn:disabled {
    border-color: transparent;
}

.wOnDemandLanguage__DropdownButton {
    color: var(--saColorBrandBlack);
    border: 1px solid var(--saColorBorderGray);
    border-radius: 6px;
    width: 100% !important; 
}

.wOnDemandLanguage__DropdownButton:hover {
    border-color: var(--saColorBorderGray);
}

@media (min-width: 1200px) {
    .wOnDemandLanguage__DropdownButton {
        width: 70% !important;
    }
}

.wOnDemandLanguage__DropdownButton::after {
    display: none;
}

.wMicrocredentialCard__Formats .accordion-button:focus {
    box-shadow: none; /* removes it for mouse clicks */
}

.wMicrocredentialCard__Formats .accordion-button:focus-visible {
    box-shadow: 0 0 0 2px var(--saColorBrandBlue); /* restores it for keyboard nav */
}

.wMicrocredentialCard__Formats__FullView .wMicrocredential__Icon-holder {
    width: fit-content;
}