.mod-bootstrap-cards {
    width: 100%;
}

.mod-bootstrap-cards .cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--cards-desktop, 4), minmax(0, 1fr));
    gap: 28px;
}

.mod-bootstrap-cards .bootstrap-card-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mod-bootstrap-cards a.bootstrap-card-item:hover,
.mod-bootstrap-cards a.bootstrap-card-item:focus {
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .1);
}

.mod-bootstrap-cards .bootstrap-card-image {
    display: block;
    width: 100%;
    object-fit: var(--card-object-fit, cover);
}

.mod-bootstrap-cards .bootstrap-card-body {
    padding: 32px 20px 26px;
    text-align: center;
}

.mod-bootstrap-cards .bootstrap-card-title {
font-size: clamp(1.6rem, 1vw, 2.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .04em;
  color: #1f3a56;
  margin-bottom: 22px;
}

.mod-bootstrap-cards.titles-uppercase .bootstrap-card-title {
    text-transform: uppercase;
}

.mod-bootstrap-cards .bootstrap-card-subtitle {
    font-size: 1rem;
    line-height: 1.45;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-bootstrap-cards .carousel {
    padding-bottom: 38px;
}

.mod-bootstrap-cards .carousel-control-prev,
.mod-bootstrap-cards .carousel-control-next {
    width: 42px;
}

.mod-bootstrap-cards .carousel-control-prev-icon,
.mod-bootstrap-cards .carousel-control-next-icon {
    filter: invert(1) grayscale(1);
}

.mod-bootstrap-cards .carousel-indicators {
    bottom: -10px;
}

.mod-bootstrap-cards .carousel-indicators [data-bs-target] {
    background-color: currentColor;
}

@media (max-width: 991.98px) {
    .mod-bootstrap-cards .cards-grid {
        grid-template-columns: repeat(var(--cards-tablet, 2), minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 575.98px) {
    .mod-bootstrap-cards .cards-grid {
        grid-template-columns: repeat(var(--cards-mobile, 1), minmax(0, 1fr));
        gap: 18px;
    }

    .mod-bootstrap-cards .bootstrap-card-image {
        height: var(--card-mobile-image-height, 210px);
    }

    .mod-bootstrap-cards .bootstrap-card-body {
        padding: 24px 16px 20px;
    }

    .mod-bootstrap-cards .bootstrap-card-title {
        font-size: 1.65rem;
        margin-bottom: 14px;
    }
}
