.bamdad-th-bib,
.bamdad-th-bib * {
    box-sizing: border-box;
}

.bamdad-th-bib {
    --bamdad-bib-blur: 12px;
    --bamdad-bib-animation-duration: .6s;
    --bamdad-bib-animation-stagger: .08s;
    width: 100%;
}

.bamdad-th-bib__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
    align-items: stretch;
}

.bamdad-th-bib.equal-height .bamdad-th-bib__grid {
    grid-auto-rows: 1fr;
}

.bamdad-th-bib__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 18px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, .08);
    text-align: left;
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.bamdad-th-bib__icon-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.bamdad-th-bib__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    background-color: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

.bamdad-th-bib__icon i,
.bamdad-th-bib__icon svg {
    display: block;
}

.bamdad-th-bib__icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.bamdad-th-bib__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.bamdad-th-bib.align-description .bamdad-th-bib__title {
    min-height: 2.5em;
}

.bamdad-th-bib__title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.bamdad-th-bib__description {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.bamdad-th-bib__description > *:first-child {
    margin-top: 0;
}

.bamdad-th-bib__description > *:last-child {
    margin-bottom: 0;
}

.bamdad-th-bib.blur-on .bamdad-th-bib__card {
    -webkit-backdrop-filter: blur(var(--bamdad-bib-blur));
    backdrop-filter: blur(var(--bamdad-bib-blur));
}

.bamdad-th-bib.has-hover.hover-lift .bamdad-th-bib__card:hover,
.bamdad-th-bib.has-hover.hover-lift .bamdad-th-bib__card:focus-within {
    transform: translateY(-6px);
}

.bamdad-th-bib.has-hover.hover-soft-scale .bamdad-th-bib__card:hover,
.bamdad-th-bib.has-hover.hover-soft-scale .bamdad-th-bib__card:focus-within {
    transform: scale(1.025);
}

.bamdad-th-bib.has-animation .bamdad-th-bib__card {
    animation-duration: var(--bamdad-bib-animation-duration);
    animation-delay: calc((var(--bamdad-bib-item-order) - 1) * var(--bamdad-bib-animation-stagger));
    animation-fill-mode: both;
    animation-timing-function: ease;
}

.bamdad-th-bib.has-animation.anim-fade-up .bamdad-th-bib__card {
    animation-name: bamdadBibFadeUp;
}

.bamdad-th-bib.has-animation.anim-fade-in .bamdad-th-bib__card {
    animation-name: bamdadBibFadeIn;
}

.bamdad-th-bib.has-animation.anim-zoom-in .bamdad-th-bib__card {
    animation-name: bamdadBibZoomIn;
}

@keyframes bamdadBibFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bamdadBibFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bamdadBibZoomIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .bamdad-th-bib__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 16px;
    }

    .bamdad-th-bib__card {
        padding: 18px 16px;
    }
}

@media (max-width: 767px) {
    .bamdad-th-bib__grid {
        grid-template-columns: 1fr;
        column-gap: 14px;
        row-gap: 14px;
    }

    .bamdad-th-bib__card {
        padding: 16px;
    }

    .bamdad-th-bib.mobile-side-by-side .bamdad-th-bib__card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
    }

    .bamdad-th-bib.mobile-side-by-side .bamdad-th-bib__icon-wrap {
        margin-bottom: 0;
    }

    .bamdad-th-bib.align-description .bamdad-th-bib__title {
        min-height: 0;
    }

    .bamdad-th-bib.mobile-stacked .bamdad-th-bib__card {
        display: flex;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bamdad-th-bib.has-animation .bamdad-th-bib__card {
        animation: none !important;
    }

    .bamdad-th-bib__card {
        transition: none !important;
    }

    .bamdad-th-bib.has-hover .bamdad-th-bib__card:hover,
    .bamdad-th-bib.has-hover .bamdad-th-bib__card:focus-within {
        transform: none !important;
    }
}
