
.announcement-thumb {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.announcement-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-title a {
    text-decoration: none;
}

.card-title a:hover {
    color: #007bff;
}

.description-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* show max 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: calc(1.6em * 3); /* fallback for browsers that don’t support -webkit-line-clamp */
    word-break: break-word;
}


.announcement-card {
    height: 100%;
    min-height: 150px;
}

.announcement-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    min-height: 100%;
}

    @media (max-width: 767.98px) {
    .announcement-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .announcement-thumb {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }

    .announcement-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .announcement-content {
        width: 100%;
    }

    .description-truncate {
        -webkit-line-clamp: 4; /* a bit more on mobile */
        max-height: calc(1.6em * 4);
    }
}

/* Fix overflow and ensure container wraps children properly */
.blog-area {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Prevent content from overlapping footer */
body {
    overflow-x: hidden;
    position: relative;
}

#announcementContainer {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
