/* ============================================================
   resource-filter.css
   Active class: mixitup-control-active (shared with MixItUp)
   ============================================================ */

/* ─── Filter Bar ─────────────────────────────────────────────── */

.resource-filter {
    padding: 10px 15px;
    border-bottom: 2px solid #478CD0;
    margin-bottom: 16px;
    display: flex;
    position: relative;
    justify-content: space-between;
    box-shadow: 0px 0px 8px 0px #0000001A;
    min-height: 76px;
}

.resource-filter .group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.resource-filter .group h4 {
    color: #565C61;
    margin: 0;
    white-space: nowrap;
    font-family: Inter;
    font-weight: 600;
    font-size: 16px;
    line-height: 19.2px;
    letter-spacing: 1.92px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* ─── Dropdown wrapper ───────────────────────────────────────── */

.category-dropdown,
.tag-dropdown {
    position: relative;
    min-width: 180px;
    flex: 1;
    max-width: 240px;
    font-family: Inter;
    font-weight: 300;
    font-size: 20px;
    line-height: 15px;
    letter-spacing: 2%;
    vertical-align: middle;
}

/* ─── Trigger (injected by JS) ───────────────────────────────── */

.rf-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #b0b8c5;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: #444;
    min-width: 211px;
}

.rf-trigger:hover {
    border-color: #1a56a0;
    color: #1a56a0;
}

span.rf-trigger-label {
    font-family: Inter;
    font-weight: 300;
    font-size: 15px;
    line-height: 145%;
    letter-spacing: 2%;
    vertical-align: middle;
}

.rf-chevron {
    font-size: 0px;
    margin-right: 0;
    position: relative;
}

.rf-chevron:after {
    content: '\f0d7';
    font-weight: 900;
    font-family: "Font Awesome 6 Pro";
    right: 5px;
    position: absolute;
    color: #A1A4B1;
    font-size: 12px;
}

/* ─── Controls list (hidden by default) ──────────────────────── */

.category-dropdown .controls,
.tag-dropdown .controls {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid #b0b8c5;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rf-open .controls {
    display: block;
}

.category-dropdown .controls .control,
.tag-dropdown .controls .control {
    padding: 10px 14px;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #eef0f3;
    transition: background 0.15s, color 0.15s;
    font-family: Inter;
    font-weight: 300;
    font-size: 15px;
    line-height: 145%;
    letter-spacing: 2%;
    vertical-align: middle;
}

.category-dropdown .control:last-child,
.tag-dropdown .control:last-child {
    border-bottom: none;
}

.category-dropdown .control:hover,
.tag-dropdown .control:hover {
    background: #f0f4fa;
    color: #1a56a0;
}

.category-dropdown .control.mixitup-control-active,
.tag-dropdown .control.mixitup-control-active {
    background: #eef3fb;
    color: #1a56a0;
    font-weight: 600;
}

/* ─── Buttons ────────────────────────────────────────────────── */

.group-btns {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 4px;
}

.group-btns button {
    min-width: 165px;
    min-height: 34px;
    height: 100%;
    width: 100%;
    font-size: 15px !important;
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
    border-radius: 0 !important;
}

#rf-apply,
.rf-apply-btn {
    background: #478CD0;
    color: #fff;
    border: 2px solid #478CD0;
    padding: 10px 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: Inter;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 0.9px;
}

#rf-apply:hover,
.rf-apply-btn:hover {
    background: #154488;
    border-color: #154488;
}

#rf-clear,
.rf-clear-btn {
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #303030;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

#rf-clear:hover,
.rf-clear-btn:hover {
    border-color: #1a56a0;
    color: #1a56a0;
}

/* ─── Applied Filter Badges ──────────────────────────────────── */

.applied-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 24px;
    position: absolute;
    left: 0;
    bottom: -38px;
}

.rf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Inter;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 0.3px;
    vertical-align: middle;
    text-transform: capitalize;
}

.rf-badge-remove {
    background: none;
    border: none;
    color: #cc0000;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-weight: 700;
}

.rf-badge-remove:hover {
    color: #990000;
}

/* ─── Cards Grid ─────────────────────────────────────────────── */

.rs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    row-gap: 24px;
    border-top: 1px solid #D3D4D8;
    padding-top: 40px;
    margin-top: 65px;
}

/* ─── Individual Card ────────────────────────────────────────── */

.item.mix {
    display: flex;
    flex-direction: column;
    border: 1px solid #dde1e7;
    border-bottom: 3px solid #478CD0;
    background: #fff;
    transition: box-shadow 0.2s;
    box-shadow: 0px 0px 8px 0px #0000001A;
}

.item.mix:hover {
    box-shadow: 0px 0px 25px -5px #0000004f;
}

.item.mix .wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.item.mix .wrapper .sub-title {
    font-family: Inter;
    font-weight: 700;
    font-size: 16px;
    line-height: 19.2px;
    letter-spacing: 1.92px;
    vertical-align: middle;
    text-transform: uppercase;
    color: #909090;
    padding-bottom: 8px;
}

.item.mix .wrapper .grp {
    display: flex;
    flex-direction: column;
    margin-right: 50px;
    position: relative;
}

.item.mix .wrapper .grp:after {
    content: "";
    background-image: url(/assets/images/buckets/solutions-icon-refinery.svg);
    width: 38px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: -50px;
    top: -5px;
}

.item.mix .wrapper h2 {
    color: #1a1a1a;
    margin: 0 0 12px;
    font-family: Inter;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0.3px;
    vertical-align: middle;
    text-transform: capitalize;
}

.item.mix .wrapper p {
    color: #303030;
    margin: 0 0 15px;
    flex: 1;
    font-family: Inter;
    font-weight: 300;
    font-size: 15px;
    line-height: 21.75px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.item.mix .wrapper a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #303030;
    text-decoration: none;
    margin-top: auto;
    font-family: Inter;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0.3px;
    vertical-align: middle;
    text-transform: capitalize;
}

.item.mix .wrapper a:hover {
    color: #1a56a0;
}

.item.mix .wrapper a span {
    font-size: 0;
    display: flex;
    gap: 4px;
}

.item.mix .wrapper a span:before {
    content: "Download";
    font-family: Inter;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0.3px;
    vertical-align: middle;
    text-transform: capitalize;
}

.item.mix .wrapper a span:after {
    font-family: "Font Awesome 6 Pro";
    content: '\f019';
    font-weight: 300;
    left: 8px;
    font-size: 18px;
}

/* ─── Pagination ─────────────────────────────────────────────── */

.rf-pagination {
    padding: 32px 0;
}

.rf-pag-list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rf-pag-divider {
    display: flex;
    align-items: center;
    color: #b0b8c5;
    font-size: 0.9rem;
    padding: 0 2px;
    user-select: none;
}

.rf-pag-btn {
    background: none;
    border: none;
    color: #000;
    padding: 6px 12px;
    cursor: pointer;
    transition: color 0.15s;
    font-family: Inter;
    font-weight: 300;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 2%;
    vertical-align: middle;
}

.rf-pag-btn:hover {
    color: #1a56a0;
}

.rf-pag-num.active .rf-pag-btn {
    color: #000;
    font-weight: 700;
}

.rf-pag-prev .rf-pag-btn,
.rf-pag-next .rf-pag-btn {
    color: #555;
    padding: 6px 10px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;
}

.rf-pag-item.disabled .rf-pag-btn {
    color: #ccc;
    cursor: default;
    pointer-events: none;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;
}

/* ─── MixItUp shared active class ───────────────────────────── */

.mixit-controls .control.mixitup-control-active {
    font-weight: 700;
    color: #1a56a0;
}

/* ─── Mobile bar (hidden on desktop) ────────────────────────── */

.rf-mobile-bar {
    display: none;
}

.rf-dropdown-trigger {
    display: none;
}

/* ─── Mobile body lock ───────────────────────────────────────── */

.rf-body-lock {
    overflow: hidden;
}

/* ─── Mobile overlay panel ───────────────────────────────────── */

.rf-mobile-panel {
    display: none;
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #fff;
    flex-direction: column;
    /* padding-left: 16px; */
    /* padding-right: 16px; */
}

.rf-mobile-panel.rf-panel-open {
    display: flex;
}

.rf-mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid #478CD0;
    flex-shrink: 0;
    box-shadow: 0px 0px 8px 0px #0000001A;
    min-height: 76px;
    margin-left: 16px;
    margin-right: 16px;
}

.rf-mobile-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #565C61;
    font-family: Inter;
    font-weight: 600;
    font-size: 16px;
    line-height: 19.2px;
    letter-spacing: 1.92px;
    vertical-align: middle;
    text-transform: uppercase;
}

.rf-mobile-panel-title svg {
    width: 18px;
    height: 18px;
    color: #1a1a1a;
}

.rf-mobile-close {
    background: none;
    border: none;
    font-size: 25px;
    color: #cc0000;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    font-weight: bold;
    font-family: 'Font Awesome 6 Pro';
}

.rf-mobile-applied {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid #565C61;
    flex-shrink: 0;
    min-height: 0;
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
}

.rf-mobile-applied:empty {
    padding: 0;
    border-bottom: none;
}

.rf-mobile-options {
    flex: 1;
    overflow-y: auto;
    padding-top: 20px;
    margin-left: 16px;
    margin-right: 16px;
}

.rf-mobile-group {
    margin-bottom: 8px;
}

.rf-mobile-group-label {
    color: #565C61;
    margin: 16px 0 8px;
    font-family: Inter;
    font-weight: 700;
    font-size: 15px;
    line-height: 145%;
    letter-spacing: 2%;
    vertical-align: middle;
}

.rf-radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    /* border-bottom: 1px solid #f0f2f5; */
}

.rf-radio-item:last-child {
    border-bottom: none;
}

.rf-radio-dot {
    width: 18px;
    height: 19px;
    border-radius: 50%;
    border: 2px solid #b0b8c5;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.rf-radio-dot::after {
    content: '';
    position: relative;
    left: -0.2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #565C61;
    transition: transform 0.15s;
}

.rf-radio-item.rf-radio-checked .rf-radio-dot {
    border-color: #565C61;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.rf-radio-item.rf-radio-checked .rf-radio-dot::after {
}

.rf-radio-label {
}

.rf-radio-item.rf-radio-checked .rf-radio-label {
    color: #565C61;
    font-family: Inter;
    font-weight: 300;
    font-size: 15px;
    line-height: 145%;
    letter-spacing: 2%;
    vertical-align: middle;
}

.rf-mobile-footer {
    display: flex;
    gap: 16px;
    padding: 16px;
    flex-shrink: 0;
//
    On click
// Navigate to: "M-";
//
    Animate: Instant;
    animation-duration: 0ms;
    box-shadow: 0px 0px 8px 0px #0000001A;
}

.rf-mobile-footer .rf-apply-btn,
.rf-mobile-footer .rf-clear-btn {
    flex: 1;
    text-align: center;
    border-radius: 0 !important;
    font-size: 15px !important;
    text-transform: capitalize;
    vertical-align: middle;
    min-height: 44px;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .rs-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    /* Show mobile bar, hide desktop filter */
    .rf-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: #fff;
        cursor: pointer;
        margin-bottom: 16px;
        user-select: none;
        box-shadow: 0px 0px 8px 0px #0000001A;
        min-height: 76px;
        border: 1px solid #478CD0;
        border-bottom: 2px solid #478cd0;
    }

    .rf-mobile-bar-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .rf-mobile-icon {
        width: 16px;
        height: 16px;
        color: #565C61;
    }

    .rf-mobile-label {
        color: #565C61;
        font-family: Inter;
        font-weight: 600;
        font-size: 16px;
        line-height: 19.2px;
        letter-spacing: 1.92px;
        vertical-align: middle;
        text-transform: uppercase;
    }

    .rf-mobile-count {
        color: #565C61;
        font-family: Inter;
        font-weight: 300;
        font-size: 15px;
        line-height: 145%;
        letter-spacing: 2%;
        vertical-align: middle;
    }

    .rf-mobile-chevron {
        width: 16px;
        height: 16px;
        color: #478CD0;
    }

    .resource-filter {
        display: none;
    }

    .rs-row {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
}


span.rf-mobile-chevron:before {
    content: '\f0d7';
    font-weight: 900;
    font-family: "Font Awesome 6 Pro";
    position: relative;
    color: #DB204D;
    font-size: 18px;
}

span.rf-mobile-chevron {
    rotate: -90deg;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
}

svg.rf-mobile-icon polygon {
    fill: #565C61;
}

.rf-mobile-panel-title svg polygon {
    fill: #565C61;
}

.rf-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #b0b8c5;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.rf-radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #565C61;
    transition: transform 0.15s;
}

.rf-radio-item.rf-radio-checked .rf-radio-dot {
    border-color: #565C61;
    border-width: 2px;
}

.rf-radio-item.rf-radio-checked .rf-radio-dot::after {
    transform: translate(-50%, -50%) scale(1);
}

.rf-pag-prev .rf-pag-btn:before {
    font-family: "Font Awesome 6 Pro";
    content: '\f053';
    font-weight: 300;
    left: 8px;
    font-size: 16px;
    color:#A1A4B1;
}

.rf-pag-prev .rf-pag-btn{
    font-size: 0 !important;
    display: flex;
}


.rf-pag-next .rf-pag-btn{
    font-size: 0 !important;
    display: flex;
}


.rf-pag-next .rf-pag-btn:before {
    font-family: "Font Awesome 6 Pro";
    content: '\f054';
    font-weight: 300;
    left: 8px;
    font-size: 16px;
    color: #A1A4B1;
}
