.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bg-soft-primary {
    background-color: rgba(85, 110, 230, 0.1) !important;
}
.bg-soft-success {
    background-color: rgba(10, 179, 156, 0.1) !important;
}
.bg-soft-danger {
    background-color: rgba(244, 106, 106, 0.1) !important;
}
.bg-soft-warning {
    background-color: rgba(247, 184, 75, 0.1) !important;
}
.bg-soft-info {
    background-color: rgba(41, 156, 219, 0.1) !important;
}
.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.card {
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.cfs-22 {
    font-size: 1.1rem;
}
.avatar-xs {
    height: 2rem;
    width: 2rem;
}
.avatar-sm {
    height: 3rem;
    width: 3rem;
}
.avatar-md {
    height: 4.5rem;
    width: 4.5rem;
}
.avatar-lg {
    height: 6rem;
    width: 6rem;
}
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.announcement-preview {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.announcement-item {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.announcement-item:hover {
    background-color: rgba(85, 110, 230, 0.05);
}

.announcement-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: transparent;
    transition: all 0.2s ease;
}

.announcement-item:hover::before {
    background-color: var(--bs-primary);
}

.announcement-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(85, 110, 230, 0.3) transparent;
    min-height: 0;
}

.announcement-list::-webkit-scrollbar {
    width: 5px;
}

.announcement-list::-webkit-scrollbar-track {
    background: transparent;
}

.announcement-list::-webkit-scrollbar-thumb {
    background-color: rgba(85, 110, 230, 0.3);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .announcement-list {
        max-height: 350px !important;
    }
    
    .fs-md-3 {
        font-size: 1.5rem !important;
    }
    
    .fs-lg-2 {
        font-size: 1.5rem !important;
    }
    
    h2.cfs-22 {
        font-size: 1rem !important;
    }
    
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid #e9ecef;
    }
}

@media (max-width: 575.98px) {
    .row-cols-2 > .col:nth-child(odd) .border-end {
        border-right: none !important;
    }
    
    .avatar-sm {
        height: 2.5rem;
        width: 2.5rem;
    }
    
    .fs-3 {
        font-size: 1.25rem !important;
    }
    
    .fs-22 {
        font-size: 1.2rem !important;
    }
    
    .card-title.mb-1 {
        font-size: 1rem;
    }
}