.moby-cs-grid-wrapper {
    font-family: 'Urbanist', sans-serif;
    width: 100%;
}

.moby-cs-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.moby-cs-header.has-intro {
    justify-content: space-between;
}

.moby-cs-intro {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 820px;
    margin: 0;
}

.moby-cs-intro-title {
    margin: 0 0 6px;
    color: #071B63;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 500;
}

.moby-cs-intro-description {
    max-width: 820px;
    margin: 0;
    color: #111B21;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}

.moby-cs-filter {
    position: relative;
    display: inline-block;
}

.moby-cs-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex: 0 0 auto;
}

.moby-cs-filter-toggle {
    padding: 12px 30px;
    border: 1px solid #FFB800;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    min-width: 160px;
    justify-content: center;
    transition: all 0.3s ease;
}

.moby-cs-filter-toggle:hover {
    box-shadow: 0 5px 15px rgba(255, 184, 0, 0.2);
}

.moby-cs-filter-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #111111;
    border-bottom: 2px solid #111111;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -4px;
}

.moby-cs-filter.open .moby-cs-filter-toggle::after {
    transform: rotate(180deg);
}

.moby-cs-filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    min-width: 180px;
    margin-top: 10px;
    overflow: hidden;
}

.moby-cs-filter.open .moby-cs-filter-dropdown {
    display: block;
}

.moby-cs-filter-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 15px;
}

.moby-cs-filter-item:hover {
    background: #f9f9f9;
}

.moby-cs-filter-item.active {
    background: #FFB800;
    color: #fff;
}

.moby-cs-carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-left: auto;
}

.moby-cs-carousel-button {
    width: 56px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--moby-carousel-border, #E7ECFB) !important;
    background-color: var(--moby-carousel-bg, #FFFFFF) !important;
    background-image: none !important;
    color: var(--moby-carousel-arrow, #1C1B1F) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    position: relative;
    z-index: 0;
    transform: none;
    box-shadow: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.moby-cs-carousel-button .moby-cs-chevron {
    display: block;
    width: 10px;
    height: 10px;
    box-sizing: border-box;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: color 0.2s ease;
}

.moby-cs-carousel-prev .moby-cs-chevron {
    transform: rotate(135deg);
}


.moby-cs-carousel-button:first-child {
    border-radius: 20px 0 0 20px;
}

.moby-cs-carousel-button:last-child {
    border-radius: 0 20px 20px 0;
}

.moby-cs-carousel-button:hover:not(:disabled),
.moby-cs-carousel-button:focus-visible:not(:disabled) {
    color: var(--moby-carousel-arrow-hover, #1C1B1F) !important;
    background-color: var(--moby-carousel-bg-hover, #FFFFFF) !important;
    background-image: none !important;
    border-color: var(--moby-carousel-border-hover, #E7ECFB) !important;
    z-index: 1;
    transform: none;
    box-shadow: none;
}

.moby-cs-carousel-button:focus-visible:not(:disabled) {
    outline: 2px solid rgba(28, 27, 31, 0.28);
    outline-offset: 2px;
}

.moby-cs-carousel-button:active:not(:disabled) {
    color: #1C1B1F !important;
    background-color: transparent !important;
    background-image: linear-gradient(135deg, #67C7E7 0%, #005BEA 100%) !important;
    border-color: #FFFFFF !important;
    transform: none;
    box-shadow: none;
}

.moby-cs-carousel-button:disabled {
    color: #E7ECFB !important;
    cursor: default;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}


.moby-cs-grid {
    display: grid;
    grid-template-columns: repeat(var(--moby-cs-columns, 3), minmax(0, 1fr));
    gap: 30px;
}

.moby-cs-grid--carousel {
    display: block;
    overflow: hidden;
    width: 100%;
}

.moby-cs-grid-track {
    display: flex;
    align-items: stretch;
    gap: 30px;
    transform: translate3d(0, 0, 0);
    transition: transform 0.45s ease;
    will-change: transform;
}

.moby-cs-grid--carousel .moby-cs-box-item {
    flex: 0 0 calc((100% - (var(--moby-cs-columns) - 1) * 30px) / var(--moby-cs-columns));
    min-width: 0;
}

.moby-cs-grid--carousel .moby-cs-box {
    height: 100%;
    box-sizing: border-box;
}

.moby-cs-box {
    background: linear-gradient(180deg, #F2F9FF 0%, #FFFFFF 100%);
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: none;
    box-shadow: none;
}

/* Keep the entire card visually unchanged on hover. */
.moby-cs-box:hover {
    background: linear-gradient(180deg, #F2F9FF 0%, #FFFFFF 100%);
    background-image: linear-gradient(180deg, #F2F9FF 0%, #FFFFFF 100%);
    box-shadow: none;
    transform: none;
    filter: none;
}

.moby-cs-box[data-moby-card-url] {
    cursor: pointer;
}

.moby-cs-box[data-moby-card-url]:focus-visible {
    outline: 2px solid #1475D1;
    outline-offset: 4px;
}

.moby-cs-box::before,
.moby-cs-box::after,
.moby-cs-box:hover::before,
.moby-cs-box:hover::after {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
    transform: none !important;
}

.moby-cs-divider {
    height: 1px;
    background-color: #EAEAEA;
    width: 100%;
    margin: 0 0 25px 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.moby-cs-box:hover .moby-cs-divider {
    opacity: 1;
}

.moby-cs-logo {
    width: 100%;
    min-height: 64px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
}

.moby-cs-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.moby-cs-pill {
    display: inline-flex;
    align-items: center;
    height: 32px;
    min-height: 32px;
    padding: 10px 16px;
    box-sizing: border-box;
    border: 1px solid var(--moby-pill-border, #D6D6D6);
    border-radius: 24px;
    background: var(--moby-pill-bg, #F2F2F2);
    color: var(--moby-pill-text, #202020);
    font-size: 12px;
    font-weight: 600;
    line-height: 10px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.moby-cs-logo img {
    width: 91px;
    height: 64px;
    max-width: 91px;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.moby-cs-company-title {
    margin: 0 0 24px;
    color: #111B21;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.moby-cs-metric-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 14px;
    row-gap: 6px;
    margin-bottom: 20px;
}

.moby-cs-big-text {
    font-size: 36px;
    font-weight: 600;
    color: #1475D1;
    margin: 0;
    line-height: 1;
}

.moby-cs-metric-row .moby-cs-small-text {
    margin: 0;
}

.moby-cs-small-text {
    font-size: 16px;
    color: #303030;
    margin: 0 0 30px 0;
    font-weight: 300;
    line-height: 1.4;
}

.moby-cs-testimonial {
    margin: 0 0 24px;
    color: #5E5E5E;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.45;
}

.moby-cs-testimonial-footer {
    border-top: 1px solid #EAEAEA;
    padding-top: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
}

.moby-cs-testimonial-giver {
    flex: 1 1 auto;
    min-width: 0;
}

.moby-cs-testimonial-name,
.moby-cs-testimonial-position {
    margin: 0;
    color: #202020;
    line-height: 1.35;
}

.moby-cs-testimonial-name {
    font-size: 18px;
    font-weight: 600;
}

.moby-cs-testimonial-position {
    font-size: 16px;
    font-weight: 300;
}

.moby-cs-link {
    position: relative;
    margin-top: 0;
    flex: 0 0 auto;
    font-size: 15px;
    color: #111111;
    text-decoration: none;
    padding-bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: color 0.25s ease;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.moby-cs-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.35s ease;
}

.moby-cs-link-label {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: border-color 0.25s ease;
}

.moby-cs-icon-before, .moby-cs-icon-after {
    display: inline-flex;
    align-items: center;
}

.moby-cs-hover-arrow {
    display: inline-block !important;
    visibility: hidden;
    width: 0;
    max-width: 0;
    overflow: hidden;
    margin-left: 0;
    opacity: 0;
    white-space: nowrap;
    transition: width 0.25s ease, max-width 0.25s ease, margin-left 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
}

.moby-cs-link i, .moby-cs-link svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.moby-cs-link:hover {
    color: #1475D1;
}

.moby-cs-link:hover .moby-cs-link-label {
    border-bottom-color: transparent;
}

.moby-cs-link:hover::before {
    width: 100%;
}

.moby-cs-link:hover .moby-cs-hover-arrow {
    visibility: visible;
    width: 1em;
    max-width: 1em;
    margin-left: 10px;
    opacity: 1;
    transition-delay: 0s;
}

@media (max-width: 1024px) {
    .moby-cs-grid { grid-template-columns: repeat(var(--moby-cs-columns-tablet, 2), minmax(0, 1fr)) !important; }
    .moby-cs-grid--carousel { --moby-cs-columns: var(--moby-cs-columns-tablet, 2) !important; }
}

@media (max-width: 768px) {
    .moby-cs-grid { grid-template-columns: repeat(var(--moby-cs-columns-mobile, 1), minmax(0, 1fr)) !important; }
    .moby-cs-grid--carousel { --moby-cs-columns: var(--moby-cs-columns-mobile, 1) !important; }
    .moby-cs-carousel-button { width: 42px; }
    .moby-cs-carousel-controls { margin-left: 0; align-self: flex-end; }
    .moby-cs-header,
    .moby-cs-header.has-intro { flex-direction: column; align-items: stretch; gap: 20px; }
    .moby-cs-intro { max-width: none; }
    .moby-cs-header-actions { width: 100%; justify-content: flex-end; }
    .moby-cs-filter { align-self: auto; }
    .moby-cs-header.has-intro .moby-cs-intro { width: 100%; }
    .moby-cs-box { padding: 28px 24px; }
    .moby-cs-logo { margin-bottom: 24px; }
    .moby-cs-company-title { margin-bottom: 18px; font-size: 24px; }
    .moby-cs-metric-row { margin-bottom: 18px; }
    .moby-cs-testimonial { margin-bottom: 20px; }
    .moby-cs-testimonial-footer { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 0; }
    .moby-cs-testimonial-giver { width: 100%; }
    .moby-cs-link { margin-top: 0; align-self: flex-start; }
}

/* Pagination controls */
.moby-cs-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin-top:32px; }
.moby-cs-pagination-button { appearance:none; border:1px solid #E7ECFB; border-radius:24px; background:#FFF; color:#111; cursor:pointer; font:inherit; line-height:1.2; min-width:42px; padding:10px 16px; transition:color .2s ease,background-color .2s ease,border-color .2s ease,opacity .2s ease; }
.moby-cs-pagination-button:hover:not(:disabled), .moby-cs-pagination-button:focus-visible:not(:disabled) { color:#1475D1; background:#F5F8FF; border-color:#1475D1; }
.moby-cs-pagination-button.active, .moby-cs-pagination-button.active:hover { color:#FFF; background:#1475D1; border-color:#1475D1; }
.moby-cs-pagination-button:disabled { cursor:default; opacity:.45; }
.moby-cs-pagination-button:focus-visible { outline:2px solid rgba(20,117,209,.35); outline-offset:2px; }
@media (max-width:768px) { .moby-cs-pagination { margin-top:24px; } .moby-cs-pagination-button { min-width:38px; padding:9px 12px; } }

/* Elementor pagination colour fallback: widget controls may be emitted after this file. */
.moby-cs-pagination .moby-cs-pagination-button { background-color:#FFF !important; background-image:none !important; color:#111 !important; border:1px solid #E7ECFB !important; }
.moby-cs-pagination .moby-cs-pagination-button.moby-cs-load-more { background-image:none !important; }
.moby-cs-pagination .moby-cs-pagination-button:hover:not(:disabled), .moby-cs-pagination .moby-cs-pagination-button:focus-visible:not(:disabled) { background-color:#F5F8FF !important; background-image:none !important; color:#1475D1 !important; border-color:#1475D1 !important; }
.moby-cs-pagination .moby-cs-pagination-button.active, .moby-cs-pagination .moby-cs-pagination-button.active:hover { background-color:#1475D1 !important; background-image:none !important; color:#FFF !important; border-color:#1475D1 !important; }
.moby-cs-pagination .moby-cs-pagination-button:disabled { background-color:#FFF !important; background-image:none !important; color:#111 !important; border-color:#E7ECFB !important; }


/* Two independent taxonomy filters are displayed side by side on desktop. */
.moby-cs-header-actions { flex-wrap: wrap; }
.moby-cs-filter-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 176px; text-align: left; }
.moby-cs-filter-toggle::after { flex: 0 0 auto; }
.moby-cs-filter-dropdown { min-width: 100%; max-height: 320px; overflow-y: auto; }
.moby-cs-filter-item { white-space: nowrap; }
@media (max-width: 768px) {
    .moby-cs-header-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .moby-cs-filter, .moby-cs-filter-toggle, .moby-cs-filter-dropdown { width: 100%; }
    .moby-cs-filter-toggle { min-width: 0; }
}


/* Filter buttons must not inherit Elementor/theme gradients from generic buttons. */
.moby-cs-grid-wrapper .moby-cs-filter-toggle,
.moby-cs-grid-wrapper .moby-cs-filter-toggle:hover,
.moby-cs-grid-wrapper .moby-cs-filter-toggle:focus,
.moby-cs-grid-wrapper .moby-cs-filter-toggle:active {
    background-image: none !important;
}
.moby-cs-grid-wrapper .moby-cs-filter-toggle {
    background-color: #FFFFFF;
    color: #111111;
    border-color: #FFB800;
}
.moby-cs-grid-wrapper .moby-cs-filter-toggle:hover,
.moby-cs-grid-wrapper .moby-cs-filter-toggle:focus-visible {
    background-color: #FFFFFF;
    color: #111111;
    border-color: #FFB800;
}
.moby-cs-grid-wrapper .moby-cs-filter-toggle:focus-visible {
    outline: 2px solid rgba(255, 184, 0, .35);
    outline-offset: 2px;
}
.moby-cs-grid-wrapper .moby-cs-filter-toggle::after {
    border-right-color: #111111;
    border-bottom-color: #111111;
}

/* Elementor’s generated rules can be appended after the plugin stylesheet. */
.moby-cs-grid-wrapper .moby-cs-filter-toggle[style] {
    background-image: none !important;
}
.moby-cs-grid-wrapper .moby-cs-filter-toggle:hover[style],
.moby-cs-grid-wrapper .moby-cs-filter-toggle:focus[style] {
    background-image: none !important;
}


/* Use a dedicated element for the dropdown arrow; do not rely on theme button pseudo-elements. */
.moby-cs-grid-wrapper .moby-cs-filter-toggle::before,
.moby-cs-grid-wrapper .moby-cs-filter-toggle::after {
    content: none !important;
    display: none !important;
}
.moby-cs-grid-wrapper .moby-cs-filter-chevron {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 8px !important;
    border-right: 2px solid #111111 !important;
    border-bottom: 2px solid #111111 !important;
    transform: rotate(45deg) !important;
    transition: transform .3s ease !important;
    margin: -4px 0 0 0 !important;
    pointer-events: none !important;
}
.moby-cs-grid-wrapper .moby-cs-filter.open .moby-cs-filter-chevron {
    transform: rotate(225deg) !important;
}


/* Final defensive reset for themes that apply shorthand rules such as background: linear-gradient(...) or border: 0 to every button. */
.moby-cs-grid-wrapper .moby-cs-filter-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: none !important;
    border-width: 1px !important;
    border-style: solid !important;
    height: auto !important;
    min-height: 48px !important;
    line-height: 1.2 !important;
}
.moby-cs-grid-wrapper .moby-cs-filter-toggle:hover,
.moby-cs-grid-wrapper .moby-cs-filter-toggle:focus,
.moby-cs-grid-wrapper .moby-cs-filter-toggle:active {
    background-image: none !important;
}


/* Precise filter-button geometry: centred label, chevron pinned to the right edge. */
.moby-cs-grid-wrapper .moby-cs-filter-toggle {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
.moby-cs-grid-wrapper .moby-cs-filter-toggle .moby-cs-filter-label {
    display: block !important;
    margin: 0 !important;
}
.moby-cs-grid-wrapper .moby-cs-filter-toggle .moby-cs-filter-chevron {
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    margin: -5px 0 0 0 !important;
}
@media (max-width: 768px) {
    .moby-cs-grid-wrapper .moby-cs-filter-toggle .moby-cs-filter-chevron {
        right: 18px !important;
    }
}


/* Tablet header: keep the intro readable and place the filters together beside it. */
@media (min-width:769px) and (max-width:1024px) {
    .moby-cs-header.has-intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        align-items: start;
        column-gap: 32px;
    }

    .moby-cs-header.has-intro .moby-cs-intro {
        width: auto;
        max-width: none;
    }

    .moby-cs-header.has-intro .moby-cs-header-actions {
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: stretch;
        align-items: flex-start;
        gap: 24px;
    }

    .moby-cs-header.has-intro .moby-cs-filter {
        flex: 1 1 0;
        min-width: 0;
    }

    .moby-cs-header.has-intro .moby-cs-filter-toggle {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}
