/* General Styles for Cards */
.announcement-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative; /* Needed for absolute positioning of the link */
    display: block; /* Make the entire card a block element */
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
}

/* Light Mode Styles */
.announcement-card {
    background-color: #ffffff; /* Light mode background */
    color: #111827; /* Light mode text color */
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.announcement-card-header,
.announcement-card-body,
.announcement-card-footer {
    padding: 0 1rem;
}

.announcement-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.announcement-card-header img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-right: 1rem;
}

.announcement-card-body {
    margin-bottom: 1rem;
}

.announcement-card-footer {
    font-size: 0.875rem;
    color: #6b7280;
}

.announcement-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.announcement-card p {
    margin: 0.25rem 0;
}

.announcement-card-footer span {
    display: block;
    margin-top: 0.5rem;
}

/* Dark Mode Styles */
body.dark .announcement-card {
    background-color: #1f2937 !important; /* Dark mode background */
    color: #d1d5db !important; /* Dark mode text color */
}

body.dark .announcement-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

body.dark .announcement-card-footer {
    color: #9ca3af !important;
}

body.dark .announcement-card h4 {
    color: #e5e7eb !important;
}

body.dark .announcement-card p {
    color: #d1d5db !important;
}

/* Make the entire card clickable */
.announcement-card-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}
