html.alyans-project-filter-open,
body.alyans-project-filter-open {
    overflow: hidden;
}

.alyans-projects-widget {
    --alyans-project-columns: 3;
    --alyans-filter-width: 250px;
    --alyans-navy: #0d2045;
    --alyans-orange: #f36b2b;
    --alyans-border: #e2e7ef;
    --alyans-muted: #667085;
    --alyans-card-image-height: 240px;
    position: relative;
    width: 100%;
}

/* Scope and normalize theme/Bootstrap form rules inside this widget. */
.alyans-projects-widget,
.alyans-projects-widget *,
.alyans-projects-widget *::before,
.alyans-projects-widget *::after {
    box-sizing: border-box;
}

.alyans-projects-widget button,
.alyans-projects-widget select,
.alyans-projects-widget input {
    font-family: inherit;
}

.alyans-projects-widget button {
    float: none !important;
    width: auto;
    min-width: 0;
    margin: 0;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.alyans-projects-widget [hidden] {
    display: none !important;
}

.alyans-projects-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--alyans-filter-width)) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.alyans-projects-widget--no-filters .alyans-projects-layout {
    grid-template-columns: minmax(0, 1fr);
}

.alyans-projects-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 42px;
    margin: 0 0 24px;
    color: var(--alyans-navy);
}

.alyans-projects-count {
    font-size: 15px;
    line-height: 1.4;
}

.alyans-projects-toolbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.alyans-projects-sort-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.alyans-projects-sort {
    min-width: 176px;
    min-height: 40px;
    margin: 0 !important;
    padding: 8px 34px 8px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background-color: transparent !important;
    color: var(--alyans-navy);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.alyans-projects-sort:focus-visible {
    outline: 2px solid var(--alyans-orange);
    outline-offset: 2px;
}

.alyans-projects-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.alyans-projects-widget .alyans-projects-view-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 8px !important;
    border: 1px solid transparent !important;
    border-radius: 2px !important;
    background: transparent !important;
    color: var(--alyans-navy) !important;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.alyans-projects-view-button svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.alyans-projects-widget .alyans-projects-view-button:hover,
.alyans-projects-widget .alyans-projects-view-button:focus-visible {
    border-color: var(--alyans-border) !important;
    color: var(--alyans-orange) !important;
}

.alyans-projects-widget .alyans-projects-view-button.is-active {
    border-color: var(--alyans-border) !important;
    color: var(--alyans-navy) !important;
    box-shadow: inset 0 -2px 0 var(--alyans-orange);
}

.alyans-project-filters {
    position: sticky;
    top: 24px;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--alyans-border);
    border-radius: 4px;
    background: #fff;
    color: #17264a;
    z-index: 5;
}

.alyans-project-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    margin: 0 !important;
    padding: 16px 18px 0;
    font-size: 16px;
}

.alyans-project-filters__header--title-hidden {
    display: none;
}

.alyans-project-filters__close {
    display: none;
    width: 38px !important;
    height: 38px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: currentColor !important;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.alyans-project-filters__group {
    display: block;
    min-width: 0;
    margin: 0 !important;
    padding: 20px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--alyans-border) !important;
    background: transparent;
}

.alyans-projects-widget .alyans-project-filters__group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 20px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.alyans-project-filters__group-title {
    position: relative;
    display: block;
    padding-left: 18px;
}

.alyans-project-filters__group-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 2px;
    transform: translateY(-50%);
    background: var(--alyans-orange);
}

.alyans-project-filters__group-symbol {
    position: relative;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
}

.alyans-project-filters__group-symbol::before,
.alyans-project-filters__group-symbol::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease, transform .2s ease;
}

.alyans-project-filters__group-symbol::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.alyans-project-filters__group-toggle[aria-expanded="true"] .alyans-project-filters__group-symbol::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.alyans-project-filters__options {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.alyans-project-filter-option {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    cursor: pointer;
}

.alyans-project-filter-option input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.alyans-project-filter-option__box {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 1px solid #b8c0cc;
    border-radius: 3px;
    background: #fff;
}

.alyans-project-filter-option input:checked + .alyans-project-filter-option__box {
    border-color: var(--alyans-orange);
    background: var(--alyans-orange);
}

.alyans-project-filter-option input:checked + .alyans-project-filter-option__box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.alyans-project-filter-option input:focus-visible + .alyans-project-filter-option__box {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.alyans-projects-widget .alyans-project-filters__clear {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 36px);
    min-height: 44px;
    margin: 18px !important;
    padding: 10px 13px !important;
    border: 1px solid currentColor !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
}

.alyans-projects-results {
    position: relative;
    min-width: 0;
}

.alyans-projects-results[aria-busy="true"]::after {
    content: "";
    position: absolute;
    inset: 58px 0 0;
    z-index: 4;
    background: rgba(255, 255, 255, .58);
    pointer-events: none;
}

.alyans-projects-results[aria-busy="true"]::before {
    content: "";
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 115px;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 3px solid rgba(13, 32, 69, .2);
    border-top-color: var(--alyans-orange);
    border-radius: 50%;
    animation: alyans-projects-spin .7s linear infinite;
}

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

.alyans-projects-grid {
    display: grid;
    grid-template-columns: repeat(var(--alyans-project-columns), minmax(0, 1fr));
    gap: 22px;
}

@media (min-width: 1025px) {
    .alyans-projects-widget[data-view-columns="2"] .alyans-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .alyans-projects-widget[data-view-columns="3"] .alyans-projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.alyans-project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--alyans-border);
    border-radius: 4px;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.alyans-project-card:hover {
    transform: translateY(-3px);
    border-color: #cbd3df;
    box-shadow: 0 13px 30px rgba(13, 32, 69, .09);
}

.alyans-project-card__link {
    display: block;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.alyans-project-card__link:focus-visible {
    outline: 3px solid var(--alyans-orange);
    outline-offset: -3px;
}

.alyans-project-card__media {
    position: relative;
    height: var(--alyans-card-image-height);
    min-height: var(--alyans-card-image-height);
    max-height: var(--alyans-card-image-height);
    overflow: hidden;
    background: #e9edf3;
}

/* Görselin kendi en-boy oranı veya tema/Bootstrap img kuralları kart yüksekliğini değiştiremez. */
.alyans-project-card__media img {
    position: absolute !important;
    inset: 0;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center;
    transition: transform .4s ease;
}

.alyans-project-card:hover .alyans-project-card__media img {
    transform: scale(1.035);
}

.alyans-project-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8edf3, #f6f8fb);
}

.alyans-project-card__placeholder svg {
    width: 54px;
    fill: #a9b4c2;
}

.alyans-project-card__badge {
    --alyans-badge-bg: var(--alyans-navy);
    position: absolute;
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    border-radius: 3px;
    background: var(--alyans-badge-bg) !important;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.alyans-project-card__body {
    position: relative;
    min-height: 138px;
    padding: 18px;
}

.alyans-project-card__title {
    margin: 0 28px 12px 0 !important;
    padding: 0 !important;
    color: var(--alyans-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.alyans-project-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 7px;
    color: var(--alyans-muted);
    font-size: 13px;
    line-height: 1.4;
}

.alyans-project-card__meta svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    fill: currentColor;
}

.alyans-project-card__arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: var(--alyans-navy);
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease;
}

.alyans-project-card:hover .alyans-project-card__arrow {
    transform: translateX(4px);
}

.alyans-projects-empty {
    padding: 44px 24px;
    border: 1px dashed #cbd3df;
    border-radius: 4px;
    color: var(--alyans-muted);
    text-align: center;
}

.alyans-projects-load-more,
.alyans-projects-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 22px !important;
    border: 1px solid var(--alyans-navy) !important;
    border-radius: 4px !important;
    background: #fff;
    color: var(--alyans-navy);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.alyans-projects-load-more {
    width: 100% !important;
    margin-top: 24px !important;
}

.alyans-projects-load-more:hover,
.alyans-projects-filter-toggle:hover {
    background: var(--alyans-navy);
    color: #fff;
}

.alyans-projects-load-more:disabled {
    opacity: .55;
    cursor: wait;
}

.alyans-projects-filter-toggle {
    display: none;
    width: 100% !important;
    margin: 0 0 18px !important;
}

.alyans-projects-filter-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.alyans-project-filters-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    .alyans-projects-widget {
        --alyans-card-image-height: 220px;
    }

    .alyans-projects-layout {
        gap: 22px;
    }

    .alyans-projects-view-switcher {
        display: none;
    }
}

@media (max-width: 767px) {
    .alyans-projects-widget {
        --alyans-card-image-height: 160px;
    }

    .alyans-projects-layout {
        display: block;
    }

    .alyans-projects-toolbar {
        align-items: center;
        margin-bottom: 16px;
    }

    .alyans-projects-count {
        font-size: 14px;
    }

    .alyans-projects-toolbar__actions {
        gap: 0;
    }

    .alyans-projects-sort {
        min-width: 145px;
        max-width: 170px;
        font-size: 13px;
    }

    .alyans-projects-view-switcher {
        display: none;
    }

    .alyans-projects-filter-toggle {
        display: flex;
    }

    .alyans-project-filters {
        position: fixed;
        z-index: 999999;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(88vw, 380px);
        max-width: 100%;
        overflow-y: auto;
        border-radius: 0;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .26s ease, visibility .26s ease;
    }

    .alyans-project-filters.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .alyans-project-filters__header,
    .alyans-project-filters__header--title-hidden {
        display: flex;
        min-height: 58px;
        padding: 10px 14px 0;
    }

    .alyans-project-filters__header--title-hidden {
        justify-content: flex-end;
    }

    .alyans-project-filters__close {
        display: inline-grid;
        place-items: center;
    }

    .alyans-project-filters-backdrop {
        position: fixed;
        z-index: 999998;
        inset: 0;
        display: block;
        background: rgba(6, 18, 42, .62);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .alyans-project-filters-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    .alyans-projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .alyans-project-card__link {
        display: grid;
        grid-template-columns: minmax(128px, 43%) minmax(0, 1fr);
        height: var(--alyans-card-image-height);
        min-height: var(--alyans-card-image-height);
        max-height: var(--alyans-card-image-height);
        align-items: stretch;
        overflow: hidden;
    }

    .alyans-project-card__media {
        height: 100%;
        min-height: 0;
        max-height: 100%;
        align-self: stretch;
    }

    .alyans-project-card__body {
        height: 100%;
        min-height: 0;
        padding: 15px;
        overflow: hidden;
    }

    .alyans-project-card__title {
        display: -webkit-box;
        margin-right: 0 !important;
        overflow: hidden;
        font-size: 16px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .alyans-project-card__arrow {
        right: 15px;
        bottom: 15px;
    }

    .alyans-project-card__badge {
        left: 8px;
        top: 8px;
        max-width: calc(100% - 16px);
        padding: 5px 7px;
        font-size: 8px;
    }
}

@media (max-width: 430px) {
    .alyans-projects-toolbar {
        align-items: flex-start;
        gap: 8px;
    }

    .alyans-projects-sort {
        min-width: 132px;
        max-width: 145px;
        padding-right: 24px !important;
    }

    .alyans-project-card__link {
        grid-template-columns: minmax(116px, 42%) minmax(0, 1fr);
    }

    .alyans-project-card__body {
        padding: 13px;
    }

    .alyans-project-card__title {
        font-size: 15px;
    }

    .alyans-project-card__meta {
        gap: 5px;
        font-size: 12px;
    }
}
