@charset "UTF-8";

.hidden {
    display: none !important;
}

.carousel__heading {
    display: block;
    color: rgb(62 63 65);
}

.carousel__subtitle {
    display: block;
    color: rgb(62 63 65);
}

.carousel__blog-container {
    position: relative;
    background: rgb(246 239 245);
    padding: 2em 0 2em;
}

.carousel__blog-title {
    text-align: center;
}

.carousel__blog-footer {
    display: flex;
    justify-content: center;
    margin-top: 4em;
}

.carousel__container {
    display: flex;
    flex-wrap: nowrap;
    flex-flow: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1em;
    width: 80%;
    overflow: hidden;
}

.carousel__filters {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 1em;
    flex-wrap: wrap;
}

.carousel__filter-btn {
    --start-color: rgb(70 169 218);
    --end-color: rgb(124 72 158);
    --mix-percentage: calc(var(--index, 0) * 100%); /* --index set in twig */
    --dynamic-color: color-mix(in oklab, var(--end-color) var(--mix-percentage), var(--start-color));

    color: var(--dynamic-color);
    border: 2px solid var(--dynamic-color);
    background-color: transparent;

    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel__filter-btn:hover,
.carousel__filter-btn.selected {
    color: rgb(255 255 255);
    background-color: var(--dynamic-color);
}

.carousel__blog {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1120px) {
    .carousel__blog .card {
        width: 32%;
    }
}

@media (max-width: 1119px) {
    .carousel__blog .card {
        min-width: 100%;
    }

    .carousel__filter-btn {
        width: 80%;
    }
}

.carousel__control {
    position: absolute;
    margin-top: 8em;
    transform: translateY(-50%);
    background: rgb(0 0 0 / 0.5);
    color: white;
    border: none;
    padding: 30px;
    cursor: pointer;
    z-index: 1;
    width: 3em;
    height: 3em;
    border-radius: 3em;
    text-align: center;
    line-height: 0;
    font-size: 1.2em;
}

.carousel__control:disabled {
    background: rgb(0 0 0 / 0.2);
    cursor: default;
}

.carousel__control-prev {
    left: 2%;
}

.carousel__control-prev span {
    margin-left: -5px;
}

.carousel__control-next {
    right: 2%;
}

.carousel__control-next span {
    margin-left: -2px;
}

.card {
    position: relative;
    background: rgb(255 255 255);
    border: 1px solid rgb(229 231 235);
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.06);
    overflow: hidden;
}

.card a {
    color: rgb(108 33 150);
    text-decoration: none;
}

.card__locked-image-container {
    background:rgba(92, 125, 208, 0.5);
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    display: flex;
    justify-content: center;
    align-items: center;

    img.card__lock-icon {
        width: 15%;
    }
}

/** naming here is wrong, should be card__image **/
.card-image {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
}
.card-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-content {
    padding: 16px;
}

.card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: bold;
    color: rgb(57 96 173);
    line-height: 1.2;
}

.card-body {
    margin-top: 8px;
    color: rgb(100, 99, 99);
    font-size: 0.95rem;
    line-height: 1.4;
    padding-bottom: 20px;
}

.card-footer {
    padding: 8px;
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
}

.card-footer-item {
    color: rgb(57 96 173);
    text-decoration: none;
    padding: 10px;
    font-weight: 600;
}
