body::-webkit-scrollbar{
    display: none; /* For Chrome, Safari, and Opera */
}

.container {
    display: flex;
    justify-content: flex-start ;
    align-items: center;
    flex-direction: column;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(to bottom, #7D0000, #C00000, #D32F2F, #E57373);
}

.announcements{
    padding: 0 40px;
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.announcements .breadcrumb{
    color: white;
}

.announcements .breadcrumb a{
    color: white;
    text-decoration: none;
}

.announcements .title{
    text-align: center;
    color: white;
    font-size: 3rem;
    margin: 20px;
}

.announcement-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
}

.announcement-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
    margin-top: 30px;
}

.announcement-card {
    width: 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.announcement-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.announcement-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.announcement-info h3 {
    font-size: 1.1rem;
    color: #800000;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.announcement-info small {
    font-size: 0.85rem;
    color: #555;
}

.announcement-info p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.read-more {
    color: #800000;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-end;
    text-decoration: none;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.page-btn {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #800000;
    color: #800000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease;
}

.page-btn:hover {
    background-color: #800000;
    color: white;
}

.page-btn.active {
    background-color: #800000;
    color: white;
}


/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

/* ===== Small Screens (phones ≤600px) ===== */
@media (max-width: 600px) {
    .address-contact p {
        font-size: 10px;
    }

    .address-contact {
        padding: 5px;
    }

    .container {
        margin-top: 70px;
        min-height: auto;
    }

    .announcements {
        padding: 0;
    }

    .announcements .title {
        font-size: 2rem;
        margin: 10px 0 20px 0;
    }

    .breadcrumb {
        font-size: 12px;
        padding: 5px 20px;
    }

    .announcement-content {
        padding: 15px;
        border-radius: 10px;
    }

    .announcement-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 15px;
    }

    .announcement-card {
        width: 100%;
        max-width: 340px;
        border-radius: 10px;
    }

    .announcement-img img {
        height: 220px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .announcement-info {
        padding: 12px;
        font-size: 0.9rem;
    }

    .announcement-info h3 {
        font-size: 1rem;
    }

    .announcement-info small {
        font-size: 0.8rem;
    }

    .announcement-info p {
        font-size: 0.85rem;
    }

    .read-more {
        font-size: 0.85rem;
    }

    .pagination {
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        margin: 3px;
    }
}

/* ===== Medium Screens (tablets 601px–1024px) ===== */
@media (min-width: 601px) and (max-width: 1024px) {
    .container {
        margin-top: 80px;
    }

    .announcements {
        padding: 0 25px;
    }

    .announcements .title {
        font-size: 2.5rem;
    }

    .announcement-content {
        padding: 25px;
    }

    .announcement-container {
        gap: 25px;
        justify-content: center;
    }

    .announcement-card {
        width: 45%;
        max-width: 400px;
    }

    .announcement-img img {
        height: 260px;
    }

    .announcement-info h3 {
        font-size: 1.05rem;
    }

    .announcement-info p {
        font-size: 0.9rem;
    }

    .pagination {
        margin-top: 35px;
    }

    .page-btn {
        padding: 7px 12px;
        font-size: 0.9rem;
    }
}

/* ===== Large Screens (desktop ≥1025px) ===== */
@media (min-width: 1025px) {
    .container {
        margin-top: 80px;
    }

    .announcement-container {
        justify-content: center;
        gap: 25px;
    }
}
