/**
 * Services Slider Widget Styles
 */

:root {
    --smarteco-blue: #1E5BC6;
    --content-area-1: 1360px;
    --content-area-2: 1130px;
}


.smarteco-service-item {
    background: #F3F7FC;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.5s ease;
    height: 480px;
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.smarteco-service-item:hover {
    /*transform: translateY(-10px);*/
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);*/
}

.smarteco-service-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.smarteco-service-icon i,
.smarteco-service-icon svg {
    transition: all 0.3s ease;
}

.smarteco-service-item:hover .smarteco-service-icon i,
.smarteco-service-item:hover .smarteco-service-icon svg {
    transform: scale(1.1);
}

.smarteco-service-item .header-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-category-tag {
    display: inline-block;
    padding: 4px 8px;
    background: transparent;
    color: var(--smarteco-blue);
    border: 1px solid var(--smarteco-blue);
    border-radius: 4px;
}

.smarteco-service-title {
    color: var(--smarteco-blue);
    font-family: 'Ubuntu', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-align: left;
    margin: 0;
}

.link-wrapper {
    width: 100%;
    position: relative
}

.link-wrapper .button {
    width: 100%;
    padding: 16px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--smarteco-blue);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.link-wrapper .button:hover {
    background-color: #1E5BC67F;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 0 0 12px 20px;
    padding: 0;
    text-align: left;
}

.content-wrapper li {
    font-size: 16px;
    line-height: 1;
    color: #666666;
}

.content-wrapper strong {
    font-weight: 600;
}

.content-wrapper a {
    color: var(--smarteco-blue);
    text-decoration: underline;
}

.smarteco-service-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}


.cse-widget-wrapper {
    padding-bottom: 50px;
}

.cse-filter-bar {
    background-color: var(--smarteco-blue);
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 28px;
}

.cse-filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cse-filter-left {
    flex: 1;
    min-width: 200px;
}

.cse-filter-left label {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.cse-filter-center {
    flex-shrink: 0;
}

.cse-filter-right {
    flex-shrink: 0;
    margin-left: auto;
}

.cse-select-wrapper,
.cse-sort-wrapper {
    position: relative;
    display: inline-block;
}

.cse-select-wrapper select,
.cse-sort-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1px solid #d0d5e0;
    border-radius: 4px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 190px;
    outline: none;
    transition: border-color 0.2s;
}

.cse-select-wrapper select:focus,
.cse-sort-wrapper select:focus {
    border-color: var(--smarteco-blue);
}

.cse-select-arrow,
.cse-sort-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 16px;
    line-height: 1;
}

.cse-clear-filters {
    color: #ffffff;
    font-size: 14px;
    text-decoration: underline ! Important;
    white-space: nowrap;
}

.cse-clear-filters:hover {
    opacity: 1;
    color: #ffffff;
    text-decoration: underline;
}


.cse-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.cse-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cse-results-count {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.cse-count-number {
    font-weight: 600;
    color: #333;
}

.cse-sort-wrapper select {
    background: transparent;
    color: #262626;
    padding-right: 24px;
    font-size: 16px;
}

.cse-sort-wrapper select:focus {
    border: none;
    outline: none;
}

span.cse-sort-arrow svg {
    width: 18px;
}

.cse-sort-arrow {
    color: #333;
    right: 10px;
    font-size: 14px;
}

.cse-services-grid {
    display: grid;
    gap: 20px;
    position: relative;
}

.cse-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}


.service-filter {
    position: relative;
    max-width: 100%;
    width: 350px;
}

.filter-toggle {
    background: #fff;
    padding: 14px;
    cursor: pointer;
    border-radius: 4px;
}

.filter-toggle span {
    color: #262626;
}

.filter-toggle .filter-label {
    color: #666666;
}

.filter-dropdown {
    display: none;
    position: absolute;
    background: #fff;
    width: 100%;
    border: 1px solid #ddd;
    z-index: 10;
    margin-top: 5px;
    border-radius: 4px;
}


.filter-group strong {
    display: block;
    margin-bottom: 5px;
    color: var(--smarteco-blue);
}

.service-filter .filter-dropdown input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.service-filter .filter-dropdown input[type="checkbox"]:checked {
    background-color: #1E5BC6;
}

.service-filter .filter-dropdown input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.service-filter .filter-dropdown input[type="checkbox"]:before {
    content: "";
    background: #dddddd;
    position: absolute;
    width: 20px;
    height: 20px;
    top: -3px;
    left: -3px;
    border-radius: 4px;
    z-index: -1;
}

.apply-filter {
    width: 100%;
    background: var(--smarteco-blue);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
}

.cse-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.cse-load-more-btn {
    display: inline-block;
    background: #ffffff;
    color: var(--smarteco-blue);
    border: 2px solid var(--smarteco-blue);
    border-radius: 4px;
    padding: 11px 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

.cse-load-more-btn:hover {
    background: var(--smarteco-blue);
    color: #ffffff;
    transform: translateY(-1px);
}

.cse-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cse-load-more-btn.cse-hidden {
    display: none;
}


.cse-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border-radius: 8px;
}

.cse-widget-wrapper.cse-loading .cse-loader-overlay {
    opacity: 1;
    pointer-events: all;
}

.cse-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e7f5;
    border-top-color: var(--smarteco-blue);
    border-radius: 50%;
    animation: cse-spin 0.7s linear infinite;
}

@keyframes cse-spin {
    to {
        transform: rotate(360deg);
    }
}

body.admin-bar .cse-widget-wrapper .filter-mobile {
    padding-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .cse-widget-wrapper .filter-mobile {
        padding-top: 46px;
    }
}

.cse-widget-wrapper .filter-mobile {
    display: block;
    position: fixed;
    width: 100dvw;
    height: 100dvh;
    z-index: 999999;
    top: 0;
    left: 100%;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.cse-widget-wrapper .filter-mobile.active {
    left: 0;
}


.cse-widget-wrapper .filter-mobile .content {
    position: relative;
    height: calc(100% - 122px);
    overflow-y: auto;
}

.cse-widget-wrapper .filter-mobile .mobile-filter-actions {
    /*position: absolute;*/
    /*bottom: 0;*/
    /*left: 0;*/
    width: 100%;
    padding: 16px 20px;
    background-color: #fff;
}

.cse-widget-wrapper .filter-mobile .mobile-filter-actions .mobile-apply-filter {
    width: 100%;
    background-color: var(--smarteco-blue);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.cse-widget-wrapper .filter-mobile .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    width: 100%;
    background-color: #1E5BC6;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 20px;
}

.cse-widget-wrapper .filter-mobile .header .paragraph {
    color: #fff;
    margin-bottom: 0;
}

.cse-widget-wrapper .filter-mobile .header .close-btn {
    display: inline-flex;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 0;
    border: none;
}

.cse-widget-wrapper .filter-mobile .header .close-btn:hover {
    background-color: #fff;
    color: #1E5BC6;
}

button.accordion-header {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    border: none;
    color: #191919;
    padding: 16px 20px 16px 16px;
}


button.accordion-header:hover,
button.accordion-header:focus,
button.accordion-header:focus-within {
    background-color: #EFEFEF;
    color: #191919;
}

.mobile-filter-options {
    display: flex;
    flex-direction: column;
}

.mobile-filter-options .mobile-filter-group {
    padding: 12px 16px;
}

.mobile-filter-options .filter-group label {
    color: #666666;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    cursor: pointer;
}

.mobile-filter-section .heading-3 {
    padding: 0 20px;
    color: #191919;
}

.mobile-filter-options .filter-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.mobile-filter-options .filter-group input[type="checkbox"]:before {
    content: "";
    background: #dddddd;
    position: absolute;
    width: 20px;
    height: 20px;
    top: -3px;
    left: -3px;
    border-radius: 4px;
    z-index: -1;
}

.mobile-filter-options .filter-group input[type="checkbox"]:checked {
    background-color: #1E5BC6;
}

.mobile-filter-options .filter-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.service-filter .filter-dropdown label {
    color: #666666;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    cursor: pointer;
}

.service-filter .filter-dropdown label:hover {
    background-color: #EFEFEF;
}

.apply-wrapper {
    padding: 14px;
}

button.apply-filter:focus,
button.apply-filter:hover {
    background-color: #1E5BC67F;
}

.cse-filter-bar .cse-filter-mobile .mobile-filter-btn {
    background-color: #fff;
    padding: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    color: #262626;
}

.cse-filter-bar .cse-filter-mobile {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .smarteco-service-item {
        padding: 30px 20px;
    }

    .smarteco-service-icon {
        font-size: 36px;
    }

    .smarteco-service-title {
        font-size: 20px;
    }

    .smarteco-service-description {
        font-size: 14px;
    }

    .cse-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cse-filter-bar .cse-filter-center,
    .cse-filter-bar .cse-filter-right {
        display: none;
    }

    .cse-filter-bar .cse-filter-mobile {
        display: block;
    }
}


@media (max-width: 640px) {
    .cse-cols-4 {
        grid-template-columns: 1fr;
    }

    .cse-filter-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cse-filter-right {
        margin-left: 0;
    }
}
