.t-home-text-container {
    max-height: 14rem;
    width: 100%;
    overflow: hidden;
    overflow-wrap: break-word;
}

.t-home-text-original {
    display: none;
}

.t-home-text-ellipsis,
.t-home-text-original {
    line-height: 1.75rem;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .t-carousel-img {
        height: 16rem;
        object-fit: cover;
    }

    .t-home-text-container {
        max-height: 12rem;
        width: 100%;
        overflow: hidden;
        overflow-wrap: break-word;
    }

    .t-home-text-ellipsis,
    .t-home-text-original {
        line-height: 1.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .t-carousel-img {
        height: 18rem;
        object-fit: cover;
    }

    .t-home-text-container {
        max-height: 12rem;
        width: 100%;
        overflow: hidden;
        overflow-wrap: break-word;
    }

    .t-home-text-ellipsis,
    .t-home-text-original {
        line-height: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .t-carousel-img {
        height: 20rem;
        object-fit: cover;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .t-carousel-img {
        height: 24rem;
        object-fit: cover;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .t-carousel-img {
        height: 27rem;
        object-fit: cover;
    }
}

.t-bg-translucent-black {
    background-color: #00000080;
}

.t-carousel-caption {
    right: 0;
    bottom: 0;
    left: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.t-carousel-indicators {
    margin-top: 0;
    margin-bottom: 0;
}

.t-carousel-item {
    aspect-ratio: 1140 / 432;
}

.t-carousel-zoom {
    transform: translateZ(0);
    transform-origin: center;
    animation: carouselScaleAnimation 5s ease-in-out;
}

@keyframes carouselScaleAnimation {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.t-news-card-img {
    max-height: 260px;
    object-fit: cover;
    height: 100%;
}

.t-committee-card-img {
    max-height: 260px;
    object-fit: cover;
    height: 100%;
}

.t-committee-text {
    max-height: 420px;
    overflow: hidden auto;
}

.t-news-container {
    min-height: 260px;
}

.t-committees-container {
    min-height: 260px;
}

.t-bg-news {
    background-image: url("../assets/back-map.png"), linear-gradient(145deg, #f2f1f3, #e7e5f1);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.t-carousel-news-item:hover .t-carousel-news-text {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.t-carousel-news-img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.t-carousel-news-item:hover .t-carousel-news-img {
    transform: scale(1.05);
}

.t-carousel-news-caption {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    padding: 0.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    max-width: 100vw;
}

.t-news-title {
    color: rgba(0, 0, 0, 0.5);
}

.t-news-title:hover {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    color: rgba(0, 0, 0, 0.8);
}
