/* News Card Styles */
.news-card {
    transition: all 0.3s ease;
    height: fit-content;
}

.news-content {
    max-height:80px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;

}

.news-content::-webkit-scrollbar {
    width: 4px;
}

.news-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.news-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.news-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Event Card Styles */
.event-card {
    transition: all 0.3s ease;
    height: fit-content;
    min-height: 5px;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover::before {
    opacity: 1;
}

.event-content {
    max-height:120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) rgba(255,255,255,0.1);
}

.event-content::-webkit-scrollbar {
    width: 4px;
}

.event-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.event-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.event-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel improvements for multiple slides */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
}

/* Ensure proper z-index for controls */
.carousel-container .absolute {
    z-index: 20;
}