/* ---- DESKTOP (default) ---- */
.announcement-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 380px;           /* even taller */
    padding: 2.5rem !important;  /* more space inside */
    font-size: 1.25rem;          /* base font size bigger */
    border-radius: 14px;
    gap: 2.5rem;                 /* more spacing between image and content */
}

.announcement-thumb {
    width: 320px;   /* bigger thumbnail */
    height: auto;
    max-height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.announcement-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.announcement-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 1.25rem;   /* bigger text globally in content */
    line-height: 1.8;
}

.card-title a {
    text-decoration: none;
    font-size: 2.5rem;  /* much bigger title */
    font-weight: 800;
    line-height: 1.3;
}

.card-title a:hover {
    color: #007bff;
}

.description-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 7; /* show more lines on desktop */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 2; /* taller line spacing */
    max-height: calc(2em * 7);
    word-break: break-word;
    font-size: 1.3rem; /* bigger description text */
    margin-top: 1.2rem;
}

.announcement-content small {
    font-size: 1.1rem; /* bigger date/meta */
}

.announcement-content .badge {
    font-size: 1.05rem;
    padding: 0.4rem 0.7rem;
}

.announcement-content .btn {
    padding: 0.9rem 1.8rem;
    font-size: 1.2rem;   /* bigger button text */
    margin-top: 2rem;
}

/* ---- MOBILE ---- */
@media (max-width: 991.98px) {
    .announcement-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        min-height: auto;
        padding: 1.2rem !important;
        gap: 1rem;
        font-size: 1rem; /* reset smaller base text */
    }

    .announcement-thumb {
        width: 100%;
        height: 260px;
        max-height: none;
        margin-bottom: 1rem;
    }

    .card-title a {
        font-size: 1.6rem;
    }

    .description-truncate {
        -webkit-line-clamp: 5;
        max-height: calc(1.7em * 5);
        font-size: 1.05rem;
    }

    .announcement-content small {
        font-size: 0.9rem;
    }

    .announcement-content .badge {
        font-size: 0.9rem;
    }

    .announcement-content .btn {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}

/* ---- Container spacing ---- */
.blog-area {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

body {
    overflow-x: hidden;
    position: relative;
}

#announcementContainer {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* more space between cards */
}
