/* Shared orphan card for the home page, orphan list, filtering and load-more results. */
.orphan_list > .orphan-profile-card-column {
    display: flex;
    margin-bottom: 24px;
}

.aytam-card-list.orphan-profile-card {
    width: 100%;
    min-height: 286px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 29, 53, .11);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 29, 53, .07);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.aytam-card-list.orphan-profile-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--ogs-accent, #b00059) 34%, transparent);
    box-shadow: 0 18px 38px rgba(0, 29, 53, .12);
}

.orphan-profile-card__top {
    height: 222px;
    min-height: 222px;
    max-height: 222px;
    padding: 18px;
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.aytam-card-list.orphan-profile-card .content.orphan-profile-card__content {
    min-width: 0;
    flex: 1 1 56%;
    padding: 7px 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    text-align: start;
}

.aytam-card-list.orphan-profile-card .name.orphan-profile-card__name {
    margin: 0 0 10px;
    color: #001d35;
    font-family: "bold", sans-serif;
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.35;
    text-decoration: none;
}

.aytam-card-list.orphan-profile-card .info.orphan-profile-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: rgba(0, 29, 53, .64);
    font-size: 13px;
    line-height: 1.7;
}

.orphan-profile-card__country {
    margin-top: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #183348;
    font-size: 13px;
    font-family: "bold", sans-serif;
}

.orphan-profile-card__country img {
    width: 28px;
    height: 19px;
    display: block;
    object-fit: cover;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
}

.orphan-profile-card__tags {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.orphan-profile-card__badge {
    margin: 0;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    color: var(--ogs-accent-dark, #7d003f);
    background: color-mix(in srgb, var(--ogs-accent, #b00059) 10%, #fff);
    font-family: "bold", sans-serif;
    font-size: 11px;
    line-height: 1.3;
}

.orphan-profile-card__badge--zakat {
    color: var(--ogs-accent-dark, #7d003f);
    background: color-mix(in srgb, var(--ogs-accent, #b00059) 14%, #fff);
}

.aytam-card-list.orphan-profile-card .pic.orphan-profile-card__photo {
    width: auto;
    height: 186px !important;
    min-height: 186px !important;
    max-height: 186px !important;
    flex: 0 0 42%;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 19px;
    background: #edf3f7;
}

.orphan-profile-card__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 58%, rgba(0, 29, 53, .08));
}

.aytam-card-list.orphan-profile-card .pic.orphan-profile-card__photo img {
    width: 100%;
    height: 100%;
    min-height: 186px !important;
    max-height: 186px !important;
    display: block;
    object-fit: cover;
    object-position: center top;
    filter: blur(5px);
    transform: scale(1.07);
    transition: transform .3s ease, filter .3s ease;
}

.aytam-card-list.orphan-profile-card:hover .orphan-profile-card__photo img {
    filter: blur(4px);
    transform: scale(1.1);
}

.orphan-profile-card__footer {
    min-height: 92px;
    margin-top: auto;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(0, 29, 53, .09);
}

.orphan-profile-card__price {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
}

.orphan-profile-card__price > span {
    margin-bottom: 3px;
    color: rgba(0, 29, 53, .55);
    font-size: 11px;
    line-height: 1.4;
}

.orphan-profile-card__price strong {
    color: #001d35;
    font-size: 21px;
    line-height: 1.2;
    white-space: nowrap;
}

.orphan-profile-card__price small {
    font-size: 12px;
    font-weight: 700;
}

.orphan-profile-card__button.btn {
    min-width: 108px;
    min-height: 46px;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 13px;
    color: #fff !important;
    background: var(--ogs-accent, #b00059) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--ogs-accent, #b00059) 23%, transparent);
    font-family: "bold", sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.orphan-profile-card__button.btn:hover,
.orphan-profile-card__button.btn:focus {
    color: #fff !important;
    background: var(--ogs-accent-dark, #7d003f) !important;
}

@media (max-width: 575.98px) {
    .orphan_list > .orphan-profile-card-column {
        width: 100%;
        padding-inline: 5px;
    }

    .aytam-card-list.orphan-profile-card {
        min-height: 260px;
        border-radius: 21px;
    }

    .orphan-profile-card__top {
        height: 174px;
        min-height: 174px;
        max-height: 174px;
        padding: 14px;
        gap: 13px;
    }

    .aytam-card-list.orphan-profile-card .pic.orphan-profile-card__photo,
    .aytam-card-list.orphan-profile-card .pic.orphan-profile-card__photo img {
        height: 146px !important;
        min-height: 146px !important;
        max-height: 146px !important;
    }

    .aytam-card-list.orphan-profile-card .pic.orphan-profile-card__photo {
        flex-basis: 43%;
        border-radius: 16px;
    }

    .aytam-card-list.orphan-profile-card .content.orphan-profile-card__content {
        padding-block: 4px;
    }

    .aytam-card-list.orphan-profile-card .name.orphan-profile-card__name {
        font-size: 18px;
    }

    .orphan-profile-card__country {
        margin-top: 9px;
    }

    .orphan-profile-card__footer {
        min-height: 86px;
        padding: 14px;
    }

    .orphan-profile-card__button.btn {
        min-width: 102px;
        min-height: 44px;
        padding-inline: 17px;
    }
}

@media (max-width: 991.98px) {
    .aytam-list .orphan-list-controls {
        width: 100%;
        margin: 16px 0 18px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        position: relative;
        z-index: 4;
    }

    .aytam-list .orphan-list-controls .orphan_arrow,
    .aytam-list .orphan-list-controls #leftArrow,
    .aytam-list .orphan-list-controls #rightArrow {
        position: static !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: 44px;
        min-width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        color: #fff;
        background: var(--ogs-accent, #b00059);
        box-shadow: 0 8px 20px rgba(0, 29, 53, .14);
        transform: none;
    }

    .aytam-list .orphan-list-controls .orphan_arrow:hover,
    .aytam-list .orphan-list-controls .orphan_arrow:focus {
        color: #fff;
        background: var(--ogs-accent-dark, #7d003f);
    }

    .aytam-list .orphan-list-controls .orphan_arrow i {
        color: #fff;
        font-size: 15px;
        line-height: 1;
    }
}

@media (max-width: 370px) {
    .orphan-profile-card__top {
        gap: 10px;
    }

    .aytam-card-list.orphan-profile-card .pic.orphan-profile-card__photo {
        flex-basis: 40%;
    }

    .orphan-profile-card__footer {
        gap: 9px;
    }

    .orphan-profile-card__button.btn {
        min-width: 94px;
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aytam-card-list.orphan-profile-card,
    .aytam-card-list.orphan-profile-card * {
        transition: none !important;
    }
}
