/* -------------------------------------------------------------------------- */
.d-flex {
    display: flex;

    /* alignment */
    &.flex-row {
        flex-direction: row;
    }

    &.flex-row-reverse {
        flex-direction: row-reverse;
    }

    &.flex-column {
        flex-direction: column;
    }

    &.flex-column-reverse {
        flex-direction: column-reverse;
    }

    /* justify content */
    &.justify-content-start {
        justify-content: start;
    }

    &.justify-content-end {
        justify-content: end;
    }

    &.justify-content-center {
        justify-content: center;
    }

    &.justify-content-between {
        justify-content: space-between;
    }

    &.justify-content-around {
        justify-content: space-around;
    }

    /* align items */
    &.align-items-start {
        align-items: flex-start;
    }

    &.align-items-end {
        align-items: flex-end;
    }

    &.align-items-center {
        align-items: center;
    }

    &.align-items-baseline {
        align-items: baseline;
    }

    &.align-items-stretch {
        align-items: stretch;
    }

    /* align content */
    &.align-content-start {
        align-content: flex-start;
    }

    &.align-content-end {
        align-content: flex-end;
    }

    &.align-content-center {
        align-content: center;
    }

    &.align-content-around {
        align-content: space-around;
    }

    &.align-content-between {
        align-content: space-between;
    }

    &.align-content-stretch {
        align-content: stretch;
    }

    /* wrapping */
    &.flex-wrap {
        flex-wrap: wrap;
    }

    &.flex-nowrap {
        flex-wrap: nowrap;
    }

    /* self align */
    .align-self-start {
        align-self: flex-start;
    }

    .align-self-end {
        align-self: flex-end;
    }

    .align-self-center {
        align-self: center;
    }

    .align-self-baseline {
        align-self: baseline;
    }

    .align-self-stretch {
        align-self: stretch;
    }

    /* fill equal spaces */
    .flex-fill {
        flex: 1 1 auto !important;
    }

    /* order */
    @for $i from 0 through 12 {
        .order-#{$i} {
            order: $i;
        }
    }
}

.d-inline-flex {
    display: inline-flex;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.logo-item {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
    width: 120px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.logo-item-lg {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item-lg img {
    max-width: 100%;
    max-height: 150px;
    width: 140px;
    object-fit: contain;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.grid-item {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
}

.paginator {
    margin-top: 20px;
    text-align: center;
}

.paginator a,
.paginator span {
    display: inline-block;
    padding: 6px 10px;
    margin: 2px;
    text-decoration: none;
    border: 1px solid #ccc;
    color: #333;
}

.paginator span.current {
    font-weight: bold;
    background: #ddd;
}