/* Announcements Styles */

/* Page Title */
.page-title {
    color: #394765; /* Navy Blue */
    font-family: 'Lora', serif;
    margin-bottom: 1.5rem;
    position: relative;
}

.page-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #1e2761;
    margin: 0.5rem auto 0;
}

/* Announcement Items */
.announcement-item .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 1px solid lightgray;
    border-right: 1px solid lightgray;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.announcement-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.announcement-item .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #a3d9b3; /* Yellow/Gold */
    border-top: 1px solid lightgray;
}

.announcement-item .card-header h5 {
    color: #394765; /* Navy Blue */
    font-family: 'Lora', serif;
}

.announcement-item .card-body {
    padding: 1.5rem;
}

.announcement-item .card-text {
    font-family: 'Montserrat', sans-serif;
    color: #424b52; /* Grayish Blue */
    margin-bottom: 1rem;
}

.announcement-date {
    margin-bottom: 1rem;
}

.announcement-item .btn-outline-primary {
    color: #394765; /* Navy Blue */
    border-color: #394765; /* Navy Blue */
}

.announcement-item .btn-outline-primary:hover {
    background-color: #394765; /* Navy Blue */
    color: white;
}

/* Badges */
.badge.bg-primary {
    background-color: #394765 !important; /* Navy Blue */
}

.badge.bg-info {
    background-color: #4a90e2 !important; /* Light Blue */
}

/* Button fields transition */
#button-fields-row {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0; /* override .mb-3 when hidden */
    transition: max-height 0.25s ease, opacity 0.25s ease, margin-bottom 0.25s ease;
}

#button-fields-row.button-fields-visible {
    max-height: 200px; /* Enough for two form rows */
    opacity: 1;
    margin-bottom: 1rem; /* restore mb-3 spacing when visible */
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: #394765; /* Navy Blue */
    border-color: #394765; /* Navy Blue */
}

.pagination .page-link {
    color: #394765; /* Navy Blue */
}

.pagination .page-link:hover {
    color: #27323a; /* Dark Blue */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .announcement-item .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .announcement-item .badge {
        margin-top: 0.5rem;
    }
}
