.templates--partners {

    > * {
        font-family: "Geist", sans-serif !important;
    }

    .hero-templates-v2-content {
        padding: 100px 0;
        gap: 30px;
    }

    .hero-templates-v2-title {
        font-size: 64px;
        font-weight: bold;
        font-family: "Geist", sans-serif !important;
        line-height: 74px;
        word-break: auto-phrase;
        max-width: 100%;
    }

    .hero-templates-v2-description {
        font-weight: normal;
        font-size: 20px;
        font-family: "Geist", sans-serif !important;
        max-width: 882px;
        line-height: 32px;
    }

    section.templates-list {
        padding: 70px 0 40px!important;
    }

    .content--count-wrapper {
        font-family: "Geist", sans-serif !important;
        font-weight: normal;
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 10px;
        color: #A5A5A5;
    }

    .main-list.row {
        padding-top: 10px;

        .article .preview {
            display: flex;
            width: 100%;
            border-radius: 10px!important;
            border: 1px solid #262365;
            font-family: "Geist", sans-serif !important;
            font-weight: normal;
            font-size: 20px;
            position: relative;
            color: #2a1c4a;
            cursor: unset;
            flex-direction: column;
            align-items: center;
            background-color: #fafafa;
            overflow: hidden;

            .icon--partner {
                height: 123px;
                display: flex;
                justify-content: center;
                align-items: center;

                img {
                    max-width: 74%;
                    margin: auto;
                }
            }

            .template-preview-info {
                padding: 20px;
                display: flex;
                flex-direction: column;
                height: calc(100% - 123px);
            }

            .template-title {
                font-size: 18px;
                font-weight: 600;
                font-family: "Geist", sans-serif !important;
                line-height: 26px;
                text-align: left;
                margin-top: 5px;
                margin-bottom: 12px;
                color: #262365;
            }

            .template-excerpt,
            .template-excerpt p,
            .template-excerpt > * {
                font-size: 16px;
                font-weight: 400;
                font-family: "Geist", sans-serif !important;
                line-height: 22px;
                margin-top: 0;
                color: #5B5B5B;
                margin-bottom: 16px;
            }

            .template-excerpt p,
            .template-excerpt > * {
                margin-bottom: 0px;
            }

            .template-link {
                margin-top: auto;
                font-size: 16px;
                line-height: 22px;
                color: #262365;
                font-weight: 600;
                font-family: "Geist", sans-serif;
                display: inline-flex;
                justify-content: flex-start;
                align-items: center;
                gap: 8px;
                min-height: 23px;
                margin-bottom: 10px;

                .icon {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
            }

        }
    }

    /* Multiselect */

    /* Root wrapper */
    .multi-select {
    position: relative;
    width: 100%;
    font-family: inherit;
    }

    /* Trigger button */
    .multi-select__trigger {
        width: 100%;
        padding: 14px 18px 13px;
        border: 1px solid #2A1C4A;
        background: #ffffff;
        border-radius: 10px;
        text-align: left;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: border-color 0.2s ease;
        margin-bottom: 32px;
        min-height: 56px;
    }

    .multi-select__trigger:hover {
    border-color: #c2c5d2;
    }

    .multi-select__placeholder {
    font-size: 18px;
    color: #2A1C4A;
    }

    /* Arrow icon */
    .multi-select__icon {
        width: 0;
        height: 0;
        position: relative;
        display: inline-block;
        min-width: 10px;
        min-width: clamp(8px, 0.83vw, 10px);
        min-height: 10px;
        min-height: clamp(8px, 0.83vw, 10px);
        top: -2px;
        border-right: 2px solid #2A1C4A;
        border-bottom: 2px solid #2A1C4A;
        transform: rotate(45deg);
        transition: transform 200ms ease, top 200ms ease, opacity 200ms ease;
        margin-left: auto;
    }

    .multi-select.is-open .multi-select__icon {
        top: 0px;
        transform: rotate(225deg);
    }

    /* Dropdown panel */
    .multi-select__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #2A1C4A;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 10px 0;
    z-index: 200;
    display: none;
    }

    .multi-select.is-open .multi-select__dropdown {
    display: block;
    }

    /* Search input */
    .multi-select__search {
    padding: 8px 14px;
    }

    .multi-select__search-input {
    width: 100%;
    padding: 12px 12px 11px 35px;
    border: 1px solid #2A1C4A;
    border-radius: 10px;
    font-size: 18px;
    }

    .multi-select__search-input:focus {
    border-color: #7a80ff;
    outline: none;
    }

    /* List styling */
    .multi-select__list {
    max-height: 230px; /* scrollable list */
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    }

    .multi-select__item {
    padding: 0;
    margin: 0;
    }

    .multi-select__option {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
    }

    .multi-select__option:hover {
    background: #f6f7fb;
    }

    /* Checkbox styling */
    .multi-select__option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    border-radius: 5px;
    accent-color: #262365; /* Modern browsers support this */
    cursor: pointer;
    }

    .multi-select__option-label {
    font-size: 14px;
    color: #333;
    }

    /* Scrollbar (optional) */
    .multi-select__list::-webkit-scrollbar {
    width: 6px;
    }
    .multi-select__list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 6px;
    }
    .multi-select__list::-webkit-scrollbar-track {
    background: transparent;
    }

    /* The whole sidebar group spacing */
    .templates-sidebar__filter-group--services {
    margin-top: 20px;
    }

    .templates-sidebar__filter-label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        font-size: 20px;
        font-family: "Geist", sans-serif;
        color: #2A1C4A;
    }

    .multi-select--single .single-select__option {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 8px 14px;
    cursor: pointer;
    }

    .single-select__item.is-selected {
    background: #f0f2ff;
    }

    .single-select__label {
    font-size: 14px;
    color: #333;
    }

    /* Child locations indentation */
    .single-select__item--child .single-select__label {
    padding-left: 20px; /* indent for child items */
    font-size: 13px;    /* λίγο πιο μικρό αν θες διαφορά */
    }

    /* Optional: λίγο πιο "ελαφρύ" χρώμα για τα children */
    .single-select__item--child {
    /* light visual tweak */
    }
    .single-select__item--child .single-select__label::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 1px;
    margin-right: 6px;
    }

    form#partners-filter-form {
        display: none;
    }

    .active-filters-bar {
        margin: 0 0 5px;
        padding: 0;
        border-radius: 10px;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: relative;
}

.active-filters-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 5px;
    background: rgb(38 35 101 / 20%);
    color: #262365;
    font-size: 16px;
    text-decoration: none;
    min-width: 190px;
    justify-content: space-between;
}

.filter-chip--location {
  background: #fff;
  border: 1px solid #2A1C4A;
  padding: 5px 10px;
  min-width: 190px;
  justify-content: space-between;
  font-size: 16px;
  border-radius: 5px;
}

.filter-chip__label {
  margin-right: 6px;
}

.filter-chip__remove {
  font-size: 20px;
  line-height: 1;
}

.filter-chip:hover {
  background: rgb(38 35 101 / 12%);
}

.filter-chip.filter-chip--location:hover {
    background: #fafafa;
}

.active-filters-bar__clear {
  font-size: 18px;
  color: #262365;
  text-decoration: underline;
  white-space: nowrap;
}

.active-filters-bar__clear:hover {
  text-decoration: none;
}

}

.templates-list .templates-sidebar {
    margin-top: 0!important;
}

.templates-popup-wrapper {
    display: flex;
}

.templates-popup {
    margin: auto;
    max-height: 762px;
    max-width: 894px;
    width: 100%;
    padding: 0;
}

.templates-carousel-item-part--left {
    background: #F8F6FF;
    max-width: 200px;
    border-radius: 8px 0px 0px 8px;
    border-right: 1px solid #262365;
    padding: 30px !important;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.templates-carousel-item-part--left .partner-sidebar {
    gap: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;

    .partner-sidebar-label {
        font-size: 20px;
        line-height: 20px;
        color: #262365;
        margin-top: 9px;
    }

    .partner-sidebar-value,
    .partner-sidebar-value a,
    a {
        font-size: 16px;
        line-height: 20px;
        color: #5B5B5B;
        margin-top: 6px;
    }
}

.templates-carousel-item-part--right {
    flex: 0 0 calc(100% - 200px);
    max-width: calc(100% - 200px);
    border-radius: 0 8px 8px 0px;
    padding: 45px 30px !important;

}

.templates-carousel-item-services-title {
    font-size: 20px;
    color: #262365;
    font-weight: 600;
    margin: 36px 0 12px;
}

.partner-services-column {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;

    li {
        flex: 26%;
        max-width: 33%;
        font-size: 16px;
        color: #262365;
        margin: 2px 0;
    }

    li:before {
        content: "";
        width: 9px;
        height: 9px;
        display: inline-block;
        background: #7B3DE8;
        border-radius: 99999px;
        margin-right: 5px;
        margin-bottom: 1px;
    }
}

.templates-carousel-item-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0 20px;

    .partner-btn {
        background: #3C10A6;
        border: 1px solid #3C10A6;
        padding: 14px 42px 13px;
        color: #fff;
        border-radius: 999px;
        font-size: 16px;
    }

    .partner-btn--secondary {
        background: #fff;
        color: #3C10A6;
    }
}

@media only screen and (max-width: 992px) {
    .templates--partners {

        .active-filters-bar__clear {
            position: absolute;
            top: -35px;
            right: 0;
        }

        .filter-chip--location,
        .filter-chip {
            min-width: unset;
            gap: 10px;
        }

    }

    .templates-carousel-item-part--left {
        max-width: 100%;
        height: unset;
        max-height: min-content;
    }

    .templates-carousel-item-part--right {
        max-width: 100%;
        overflow: visible;

        .templates-carousel-item-title {
            display: flex!important;
        }
    }
}

@media only screen and (max-width: 768px) {
    .partner-services-column {
        li {
            flex: 45%;
            max-width: 50%;
        }
    }

    .templates-carousel-item-part--left {
        max-width: 100%;
        height: unset;
        max-height: min-content;
        background: #fff;

        .partner-sidebar {
            display: none;
        }
    }

    .templates-carousel-item-part--right {
        max-width: 100%;
        overflow: visible;
        padding-top: 0!important;

        .templates-carousel-item-title {
            display: flex!important;
        }
    }
}

@media only screen and (max-width: 500px) {
    .partner-services-column {
        li {
            flex: 100%;
            max-width: 100%;
        }
    }
}
